When it comes to the rehydration state of an application in an Angular 2 application for a single page, someone has other options:
- Use some kind of local storage like IndexedDB to store and retrieve state.
- Use the http backend to retrieve the state.
I am trying to weigh the pros and cons of one and the other of these options.
I rely on libriries ngrx (see https://github.com/ngrx ). I read about meta-reducers and ngrx / db that look great, but my main problem is which of the two options above to choose when the application restarts in the browser ...
What are the best practices regarding rehydration status? What are the pros and cons of the two above options?
source
share