-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import saved store state using devtools package #3636
Comments
I'm closing this because it has no reproduction. |
Happens everywhere I could check, so I didn't bother with specific repro.
So here you go: https://stackblitz.com/edit/angular-urqqk2?file=src/main.ts Latest angular and ngrx. You will need to:
@timdeschryver |
Thanks @MikeDabrowski |
This should work if you set the value of the |
My bad, I meant |
Which @ngrx/* package(s) are the source of the bug?
store-devtools
Minimal reproduction of the bug/regression with instructions
Using chrome redux dev tools, export the state to .json and import it again.
Minimal reproduction of the bug/regression with instructions
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
+-- @ngrx/effects@14.3.2
+-- @ngrx/entity@14.3.2
+-- @ngrx/router-store@14.3.2
+-- @ngrx/schematics@14.3.2
+-- @ngrx/store-devtools@14.3.2
+-- @ngrx/store@14.3.2
Other information
I think the problem is in the following line:
platform/modules/store-devtools/src/reducer.ts
Lines 408 to 420 in 24c086f
The
nextLiftedState
has the store structure and therefore does not contain all those 'meta' properties. This results in the errorCannot read properties of undefined (reading 'length')
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: