Open msprogramando opened 5 years ago
It seems the localStorageSync will never get reaced.
Hello,
did you already found a solution? I have the same issue :(
same issue here.
No solution found yet
Hi @msprogramando,
I got it to work finally! :)
`const reducers: ActionReducerMap
export function localStorageSyncReducer(reducer: ActionReducer
and in the imports it looks like:
StoreModule.forFeature('settings', reducers, { metaReducers }),
I got the same issue when using nx
.
My app structure is like:
// Entry, no real business code inside
apps/main/src/app
app.module.ts
// Business code models
libs/myApp/src/lib..
myApp.module.ts
I got it to work finally by moving ngrx root, etc
from apps main
model to libs/myApp
.
Dear Devs, please help me. Perhaps you see directly what i am doing wrong. I cannot store the state and I can't find it in the localstorage.
I added this to my app.module.ts -> BTW: I had to replace IState with any to not getting an error.
// Action
// Reducer
// In component
// This is an image of local storage after dispatching the action