@tramvai/state 2.123.3 → 2.124.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.
|
@@ -207,10 +207,11 @@ Have you forgot to register reducer or add event handler in existing reducer?
|
|
|
207
207
|
for (let i = 0; i < keys.length; i++) {
|
|
208
208
|
const storeName = keys[i];
|
|
209
209
|
const store = this.storeInstances[storeName];
|
|
210
|
-
|
|
210
|
+
const dehydrateResult = store.dehydrate();
|
|
211
|
+
if (typeof dehydrateResult === 'undefined') {
|
|
211
212
|
continue;
|
|
212
213
|
}
|
|
213
|
-
stores[storeName] =
|
|
214
|
+
stores[storeName] = dehydrateResult;
|
|
214
215
|
}
|
|
215
216
|
return {
|
|
216
217
|
stores,
|
|
@@ -215,10 +215,11 @@ Have you forgot to register reducer or add event handler in existing reducer?
|
|
|
215
215
|
for (let i = 0; i < keys.length; i++) {
|
|
216
216
|
const storeName = keys[i];
|
|
217
217
|
const store = this.storeInstances[storeName];
|
|
218
|
-
|
|
218
|
+
const dehydrateResult = store.dehydrate();
|
|
219
|
+
if (typeof dehydrateResult === 'undefined') {
|
|
219
220
|
continue;
|
|
220
221
|
}
|
|
221
|
-
stores[storeName] =
|
|
222
|
+
stores[storeName] = dehydrateResult;
|
|
222
223
|
}
|
|
223
224
|
return {
|
|
224
225
|
stores,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/state",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.124.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tinkoff/react-hooks": "0.1.6",
|
|
21
21
|
"@tinkoff/utils": "^2.1.2",
|
|
22
|
-
"@tramvai/types-actions-state-context": "2.
|
|
22
|
+
"@tramvai/types-actions-state-context": "2.124.0",
|
|
23
23
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
24
24
|
"invariant": "^2.2.4",
|
|
25
25
|
"react-is": ">=17",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@reatom/core": "^1.1.5",
|
|
37
|
-
"@tramvai/core": "2.
|
|
37
|
+
"@tramvai/core": "2.124.0",
|
|
38
38
|
"@types/invariant": "^2.2.31",
|
|
39
39
|
"@types/react-is": "^17.0.0",
|
|
40
40
|
"@types/use-sync-external-store": "^0.0.3",
|