@tramvai/state 5.47.0 → 5.48.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.
|
@@ -33,7 +33,7 @@ Have you forgot to register it? Note, that we are registering it for you to make
|
|
|
33
33
|
}
|
|
34
34
|
const storesRef = useShallowEqual(storesOrStore);
|
|
35
35
|
const subscription = useMemo(() => new Subscription(toArray(storesRef).map(context.getStore)), [storesRef, context]);
|
|
36
|
-
const latestSubscriptionCallbackError = useRef();
|
|
36
|
+
const latestSubscriptionCallbackError = useRef(undefined);
|
|
37
37
|
const subscribe = useCallback((reactUpdate) => {
|
|
38
38
|
subscription.setOnStateChange(() => {
|
|
39
39
|
if (!renderIsScheduled.current) {
|
|
@@ -43,7 +43,7 @@ Have you forgot to register it? Note, that we are registering it for you to make
|
|
|
43
43
|
}
|
|
44
44
|
const storesRef = reactHooks.useShallowEqual(storesOrStore);
|
|
45
45
|
const subscription = React.useMemo(() => new Subscription.Subscription(toArray__default["default"](storesRef).map(context$1.getStore)), [storesRef, context$1]);
|
|
46
|
-
const latestSubscriptionCallbackError = React.useRef();
|
|
46
|
+
const latestSubscriptionCallbackError = React.useRef(undefined);
|
|
47
47
|
const subscribe = React.useCallback((reactUpdate) => {
|
|
48
48
|
subscription.setOnStateChange(() => {
|
|
49
49
|
if (!renderIsScheduled.current) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/state",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.48.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -19,22 +19,21 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tinkoff/react-hooks": "0.4.2",
|
|
21
21
|
"@tinkoff/utils": "^2.1.2",
|
|
22
|
-
"@tramvai/types-actions-state-context": "5.
|
|
23
|
-
"@types/hoist-non-react-statics": "^3.3.
|
|
22
|
+
"@tramvai/types-actions-state-context": "5.48.0",
|
|
23
|
+
"@types/hoist-non-react-statics": "^3.3.6",
|
|
24
24
|
"invariant": "^2.2.4",
|
|
25
25
|
"react-is": ">=17",
|
|
26
26
|
"tslib": "^2.4.0",
|
|
27
|
-
"use-sync-external-store": "^1.
|
|
27
|
+
"use-sync-external-store": "^1.4.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"hoist-non-react-statics": "^3.3.1",
|
|
31
|
-
"prop-types": "^15.6.2",
|
|
32
31
|
"react": ">=16.14.0",
|
|
33
32
|
"react-dom": ">=16.14.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@reatom/core": "^1.1.5",
|
|
37
|
-
"@tramvai/core": "5.
|
|
36
|
+
"@tramvai/core": "5.48.0",
|
|
38
37
|
"@types/invariant": "^2.2.31",
|
|
39
38
|
"@types/react-is": "^17.0.0",
|
|
40
39
|
"@types/use-sync-external-store": "^0.0.3",
|