@kuindji/reactive 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,6 @@ function useActionMap(actions, errorListener) {
|
|
|
20
20
|
throw new Error("useActionMap() does not support changing actions or errorListener");
|
|
21
21
|
}
|
|
22
22
|
changeRef.current++;
|
|
23
|
-
}, [actions, errorListener, boundaryErrorListener]);
|
|
23
|
+
}, [actions, errorListener !== null && errorListener !== void 0 ? errorListener : null, boundaryErrorListener !== null && boundaryErrorListener !== void 0 ? boundaryErrorListener : null]);
|
|
24
24
|
return actionMap;
|
|
25
25
|
}
|
|
@@ -24,10 +24,12 @@ function useEventBus(eventBusOptions, allEventsListener, errorListener) {
|
|
|
24
24
|
return eventBus;
|
|
25
25
|
}, []);
|
|
26
26
|
(0, react_1.useEffect)(() => {
|
|
27
|
-
if (
|
|
28
|
-
|
|
27
|
+
if (eventBusOptions) {
|
|
28
|
+
if (updateRef.current > 0) {
|
|
29
|
+
throw new Error("EventBus options can't be updated");
|
|
30
|
+
}
|
|
31
|
+
updateRef.current++;
|
|
29
32
|
}
|
|
30
|
-
updateRef.current++;
|
|
31
33
|
}, [eventBusOptions]);
|
|
32
34
|
(0, react_1.useEffect)(() => {
|
|
33
35
|
if (allEventsListenerRef.current !== allEventsListener) {
|
package/package.json
CHANGED