@cripty2001/utils 0.0.80 → 0.0.81
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/dist/react-whispr.js +4 -4
- package/package.json +1 -1
package/dist/react-whispr.js
CHANGED
|
@@ -106,17 +106,17 @@ function useSynced(def, value, setValue) {
|
|
|
106
106
|
throw new Error('Either value and setValue must be provided, or both must be undefined');
|
|
107
107
|
if (value !== undefined && setValue !== undefined) {
|
|
108
108
|
(0, react_1.useEffect)(() => {
|
|
109
|
-
console.log('syncing value downstream', value, '->', v);
|
|
109
|
+
// console.log('syncing value downstream', value, '->', v);
|
|
110
110
|
if ((0, lodash_1.isEqual)(v, value))
|
|
111
111
|
return;
|
|
112
|
-
console.log("SYNCED")
|
|
112
|
+
// console.log("SYNCED")
|
|
113
113
|
setV(value);
|
|
114
114
|
}, [value, v, setV]);
|
|
115
115
|
(0, react_1.useEffect)(() => {
|
|
116
|
-
console.log('syncing value upstream', v, '->', value);
|
|
116
|
+
// console.log('syncing value upstream', v, '->', value);
|
|
117
117
|
if ((0, lodash_1.isEqual)(v, value))
|
|
118
118
|
return;
|
|
119
|
-
console.log("SYNCED");
|
|
119
|
+
// console.log("SYNCED");
|
|
120
120
|
setValue(v);
|
|
121
121
|
}, [v, value, setValue]);
|
|
122
122
|
}
|
package/package.json
CHANGED