@ptolemy2002/react-proxy-context 1.0.9 → 1.0.10
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.
- package/index.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -392,13 +392,11 @@ function ProxyContextProvider({ contextClass, children, value, onChange, proxyRe
|
|
|
392
392
|
value2 = target[prop];
|
|
393
393
|
Object.values(changeSubscribers.current).forEach((subscriber) => {
|
|
394
394
|
if (!subscriber.deps || subscriber.deps.includes(prop) && prevValue !== value2 || subscriber.deps.some((subProp) => (0, import_is_callable.default)(subProp) && subProp(prop, value2, prevValue, newObj))) {
|
|
395
|
+
console.log("Calling subscriber:", subscriber);
|
|
395
396
|
subscriber.callback(prop, value2, prevValue);
|
|
396
397
|
}
|
|
397
398
|
});
|
|
398
399
|
if ((0, import_is_callable.default)(onChange)) onChange(prop, value2, prevValue);
|
|
399
|
-
Object.values(changeSubscribers.current).forEach((subscriber) => {
|
|
400
|
-
subscriber.callback(prop, value2, prevValue);
|
|
401
|
-
});
|
|
402
400
|
return true;
|
|
403
401
|
}
|
|
404
402
|
});
|