ngrx-store-localstorage
ngrx-store-localstorage copied to clipboard
Simple syncing between @ngrx store and local storage
I've got a object that has a string property that is actually just serialized json. It seems that when this object gets rehydrated the Deserializer tries to parse it into...
How can i implement this library in angular 17 with standalone components?
Migrated the deepmerge library to @bundled-es-modules/deepmerge. fixes #229 ## Summary This PR transitions from the deepmerge library to @bundled-es-modules/deepmerge, which is essentially the same library but exported as an ES...
My state looks like: ```json { "name": "John", "age": 12, "married": false, "children": [] } ``` And I use the metareducer as below: ```ts localStorageSync({ keys: ['name', 'age', 'married'], rehydrate:...
Versions ngrx-store-localstorage 14.0.0 Angular 14.0.5 ``` Warning: /Users/user/myproject/node_modules/ngrx-store-localstorage/fesm2020/ngrx-store-localstorage.mjs depends on 'deepmerge'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies ```
## Summary This PR introduces a fix for the issue [not syncing with feature stores](https://github.com/btroncone/ngrx-store-localstorage/issues/96) ## PR Checklist Please check if your PR fulfills the following requirements: - [x] The...
Feature stores do not receive the @ngrx/store/init action, thus the initialization of the state skipped the merge ## PR Checklist Please check if your PR fulfills the following requirements: -...
The following would improve this repo a lot: - [X] Change the build to use [Angular CLI](https://cli.angular.io/) - [X] Swap out TSLint for ESLint - [ ] Add prettier using...
Hi , i have tried to sync the store with following code. but it is not synching. Please see the code. ```ts export function localStorageSyncReducer(reducer: ActionReducer): ActionReducer { return localStorageSync({keys:...
I am trying to figure out how to create a custom prefix based on a siteId which is stored in the AppState. Could you help me out in providing the...