Closed
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[*] Bug report
[ ] Feature request
[ ] Documentation issue or request
What is the current behavior?
When a new reducer get loaded with StoreModule.forFeature(), checking the initial state (corresponding to @ngrx/store/init action), the state contains all the initialized states after first loading of the feature reducer.
Expected behavior:
Devtools should show the correct state relative to the selected action in devtools app.
Minimal reproduction of the problem with instructions:
https://github.com/ngrx/platform/tree/master/example-app
- Activate devtools in browser
- Reload page at http://localhost:4200/#/asdasd url (BooksModule not loaded).
- Click on @ngrx/store/init in devtools and see the state (no "books" property).
- Navigate to home (click on "Take me home")
- Click on @ngrx/store/init in devtools and see the state ("books" state populated).
(see attached images)
Version of affected browser(s),operating system(s), npm, node and ngrx:
Chrome Version 61.0.3163.100, windows 10, ngrx/* 4.0.x, devtools 2.15.1