I am implementing ngrx state management in an Angular 4 app. It was going well until I tried to "hydrate" the app state with the state previously saved in the browser local storage.
I have a question about the Initial State and Ahead of Time Compilation section of ngrx/store
documentation. Specifically, what does the following line mean and how would I go about setting ("dynamically injecting at run-time") initialStateFromSomewhere
to a state retrieved from browser local storage?
/// Pretend this is dynamically injected at runtime
const initialStateFromSomewhere = { counter: 3 };