natural-apptitude / ngrx-store-ionic-storage

Simple syncing between @ngrx/store and Ionic Storage.
MIT License
66 stars 26 forks source link

Missing an ignored action, causes state to be overwritten before hydration... better way of doing it? #18

Open Inlustra opened 6 years ago

Inlustra commented 6 years ago

So after some testing to get this library fixed with the newest version of ngrx, Ionic and Angular; it looks like we're missing an action.

  ignoreActions.push('@ngrx/store/update-reducers');

I think this action must only be used with ngrx's StoreModule.forFeature brought in in the latest version.

But I'm wondering if we can stop all state persisting before hydration is true in the reducer? Seems like a more foolproof way to prevent that.