Bug with Lazy Loaded feature modules
See original GitHub issueHello,
The following PR introduced a bug related to lazy loaded feature modules: https://github.com/btroncone/ngrx-store-localstorage/pull/76/files
The net effect of this PR is to re-hydrate the state when every feature module is loaded, and this breaks sections of the state which are selectively serialized (localStorageSync({keys: [{todos: ['name', 'status'] }, ... ]}))
).
The result is the state being rehydrated and deleting all other keys not in local storage.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:37 (3 by maintainers)
Top Results From Across the Web
Resolving errors faced while implementing Lazy Loading with ...
It is a known bug in Angular that lazy loading module does not work well with Auxiliary routes / named router.
Read more >Issues for Lazy-load | Drupal.org
Title Status Priority Category Version Com...
iframes no longer lazy load after 3.6 Active Normal Bug report 8.x‑3.x‑dev Code
Automated Drupal 10 compatibility fixes Needs...
Read more >netmonitor can lazy load various components modules
Here is a profile of DAMP: https://perfht.ml/2zwbLsH It highlights that MonitorPanel is force-loaded by App.js and it pulls many dependencies ...
Read more >Angular Example - Lazy Loading Feature Modules - StackBlitz
Angular Example - Lazy Loading Feature Modules. ... customers.module').then(m => m. CustomersModule). },. {. path: 'orders',. loadChildren: () => import('.
Read more >Angular Feature Module And Lazy Loading - One Of Way To ...
It will avoid the loading of the entire application at a time. · Can be pre-loaded the features modules in the background ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bmalinconico Really looking for another extra set of eyes that is using this library every day. Need help determining priority and impact of some of the proposed PR’s / issues.
I am using
ngrx-store-localstorage
withNX workspace
and I tried all workarounds but still can’t make it work with lazyloaded modules in the case when I want to rehydrate specific slices from the state, on page refresh the initial state is being replaced by the saved slices from thelocalstorage
.The root store is called
merchant
and the feature store is calledonboarding
.This is my setup:
merchant.meta-reducers.ts - for the host app
app.module.ts - host app
entry.module.ts
onboarding.meta-reducer.ts - metareducer for the lazyloaded module