Initial state not passed to meta reducers during @ngrx/store/init #477
Closed
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
What is the current behavior?
Initial state is not passed to meta reducers during @ngrx/store/init
Expected behavior:
Initial state should be passed to meta reducers during @ngrx/store/init, especially for libraries like ngrx-localstorage-sync which need to merge any supplied initial state with values saved in local storage, for example (see https://github.com/btroncone/ngrx-store-localstorage/blob/master/src/index.ts#L180).
Minimal reproduction of the problem with instructions:
https://stackblitz.com/edit/angular-c8kl8z
If you run the stackblitz, you'll see that state is undefined inside the logger metareducer during @ngrx/store/init (check the console, or debug if you want)
Version of affected browser(s),operating system(s), npm, node and ngrx:
"@ngrx/router-store": "^4.0.4",
"@ngrx/store": "^4.0.3",
Other information:
Metadata
Assignees
Labels
No labels