@frontegg/react-hooks 7.3.0-alpha.0 → 7.4.0-alpha.0
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 -1
- package/node/index.js +1 -1
- package/node/useSnapshot/index.js +0 -4
- package/package.json +5 -4
- package/useSnapshot/index.js +0 -4
package/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -128,10 +128,6 @@ function useSnapshot(proxyObject, options) {
|
|
|
128
128
|
lastSnapshot.current = currSnapshot;
|
|
129
129
|
lastAffected.current = currAffected;
|
|
130
130
|
});
|
|
131
|
-
// if (import.meta.env?.MODE !== 'production') {
|
|
132
|
-
// // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
133
|
-
// useAffectedDebugValue(currSnapshot, currAffected)
|
|
134
|
-
// }
|
|
135
131
|
const proxyCache = (0, _react.useMemo)(() => new WeakMap(), []); // per-hook proxyCache
|
|
136
132
|
return (0, _proxyCompare.createProxy)(currSnapshot, currAffected, proxyCache, targetCache);
|
|
137
133
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-alpha.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/redux-store": "7.
|
|
10
|
-
"@frontegg/types": "7.
|
|
9
|
+
"@frontegg/redux-store": "7.4.0-alpha.0",
|
|
10
|
+
"@frontegg/types": "7.4.0-alpha.0",
|
|
11
11
|
"@types/react": "*",
|
|
12
12
|
"@types/react-is": "^17.0.7",
|
|
13
13
|
"get-value": "^3.0.1",
|
|
14
|
-
"react-is": "^17.0.2"
|
|
14
|
+
"react-is": "^17.0.2",
|
|
15
|
+
"use-sync-external-store": "^1.2.2"
|
|
15
16
|
},
|
|
16
17
|
"sideEffects": false,
|
|
17
18
|
"private": false,
|
package/useSnapshot/index.js
CHANGED
|
@@ -119,10 +119,6 @@ export function useSnapshot(proxyObject, options) {
|
|
|
119
119
|
lastSnapshot.current = currSnapshot;
|
|
120
120
|
lastAffected.current = currAffected;
|
|
121
121
|
});
|
|
122
|
-
// if (import.meta.env?.MODE !== 'production') {
|
|
123
|
-
// // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
124
|
-
// useAffectedDebugValue(currSnapshot, currAffected)
|
|
125
|
-
// }
|
|
126
122
|
const proxyCache = useMemo(() => new WeakMap(), []); // per-hook proxyCache
|
|
127
123
|
return createProxyToCompare(currSnapshot, currAffected, proxyCache, targetCache);
|
|
128
124
|
}
|