@zhin.js/client 1.0.1 → 1.0.2
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/package.json +1 -1
- package/src/store/index.ts +2 -2
package/package.json
CHANGED
package/src/store/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
REHYDRATE,
|
|
11
11
|
createTransform,
|
|
12
12
|
} from 'redux-persist';
|
|
13
|
-
import
|
|
13
|
+
import storage from 'redux-persist/es/storage';
|
|
14
14
|
import {reducers, Reducers } from './reducers';
|
|
15
15
|
import { useDispatch as useReduxDispatch, TypedUseSelectorHook, useSelector as useReduxSelector } from 'react-redux';
|
|
16
16
|
|
|
@@ -39,7 +39,7 @@ const scriptTransform = createTransform(
|
|
|
39
39
|
|
|
40
40
|
const persistConfig: any = {
|
|
41
41
|
key: 'root',
|
|
42
|
-
storage:
|
|
42
|
+
storage: storage,
|
|
43
43
|
transforms: [routeTransform, scriptTransform],
|
|
44
44
|
}
|
|
45
45
|
const persistedReducer = persistReducer(persistConfig, combineReducers(reducers)) as any
|