diff --git a/src/index.tsx b/src/index.tsx index c1795b9..ecfca75 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -48,7 +48,9 @@ function triggerSubscriptions() { (componentId: string) => { new Promise( (resolve, reject) => { - subscribes[componentId]() + if (subscribes[componentId] && typeof subscribes[componentId] === 'function') { + subscribes[componentId]() + } resolve() } ).then()