redux-astroglide 0.1.6 → 0.1.8
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/CHANGELOG.md +4 -0
- package/README.md +6 -4
- package/dist/index.es.js +3925 -1
- package/dist/index.js +3934 -1
- package/dist/index.umd.js +5992 -1
- package/dist/plugins/index.es.js +697 -1
- package/dist/plugins/index.js +710 -1
- package/dist/plugins/index.umd.js +794 -1
- package/dist/plugins/persist/index.es.js +442 -1
- package/dist/plugins/persist/index.js +449 -1
- package/dist/plugins/persist/index.umd.js +455 -1
- package/dist/plugins/set/index.es.js +17 -1
- package/dist/plugins/set/index.js +19 -1
- package/dist/plugins/set/index.umd.js +25 -1
- package/dist/plugins/type/index.es.js +104 -1
- package/dist/plugins/type/index.js +110 -1
- package/dist/plugins/type/index.umd.js +194 -1
- package/package.json +14 -12
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -203,9 +203,9 @@ const configure = "redux-astroglide";
|
|
|
203
203
|
export const {
|
|
204
204
|
store,
|
|
205
205
|
createSlice,
|
|
206
|
-
injectReducer,
|
|
207
|
-
injectSlice,
|
|
208
|
-
injectMiddleware,
|
|
206
|
+
injectReducer, // injectReducer(key: string, state => state: reducer fn, optionally async)
|
|
207
|
+
injectSlice, // injectSlice(slice: result from createSlice())
|
|
208
|
+
injectMiddleware, // injectMiddleware(middleware: redux middleware)
|
|
209
209
|
} = configure();
|
|
210
210
|
```
|
|
211
211
|
|
|
@@ -225,7 +225,7 @@ const slice = createSlice("Login", {
|
|
|
225
225
|
// Nav/slice.js
|
|
226
226
|
const slice = createSlice("Nav", {
|
|
227
227
|
isOpen: persist("", {
|
|
228
|
-
storageType: localStorage,
|
|
228
|
+
storageType: localStorage, // default localStorage, must match localStorage API
|
|
229
229
|
}),
|
|
230
230
|
clickCount: set((value) => value + 1),
|
|
231
231
|
});
|
|
@@ -307,6 +307,8 @@ addPlugins({
|
|
|
307
307
|
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
+
Note: This import style uses a package.json `exports` field which is still not supported in some environments. If the nested imports like `redux-astroglide/plugins` can't be found in your project try importing them from `redux-astroglide/dist/plugins` and `redux-astroglide/dist/plugins/set` etc.
|
|
311
|
+
|
|
310
312
|
|
|
311
313
|
|
|
312
314
|
## Contributing
|