-
Notifications
You must be signed in to change notification settings - Fork 121
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
Page reload writes default state to localStorage - Production ONLY #75
Comments
As per this related issue, when StoreDevtoolsModule is enabled, everything works. |
Update:
Where To reproduce, just comment out this line from your module. @btroncone what do you think? |
I have the exactly same issue, please fix soon! Thank you! |
Until this project becomes active again, here is a workaround ...
"baseUrl": "src",
"paths": {
"@ngrx-storage-workaround/*": [
"../node_modules/ngrx-store-localstorage/src/*"
]
import { localStorageSync, rehydrateApplicationState } from '@ngrx-storage-workaround/index'; This will pull down the typescript and compile it alongside your project. |
@btroncone I would be willing to help do maintenance work on this project if you want. I would not have time for reviewing feature work but I could review and merge regressions like this if you'd like. See my work here https://gitlab.com/bufke |
@bufke @un33k Apologies for the delay, I have been super busy (as I'm sure we all are) and lost track of this project. If anyone would like to take over and start managing issues or PR's I would be happy to make you a collaborator. I can oversee some PR's but I'm not sure how much time I will have to make active contributions in the near future. Please let me know, and thank you for your patience! 👍 @ernestomancebo |
can anyone help me how to use the ngrx local storage module to encrypt and decrypt my data. |
The above works great in development, however, in production, an extra action of type
@ngrx/store/update-reducers
is fired twice which preempts the rehydrate step which wipes the localStorage copy to the initial state. Resulting in the user log-out when the page is reloaded.The text was updated successfully, but these errors were encountered: