What is the best way to maintain state persistence between page reloads? I'm not referring to state management with ngrx, but rather the scenario where refreshing the page causes user logouts, unsaved changes, and other data loss.
Initially, I considered using localStorage and initializing everything in ngOnInit() for each component, but it feels like reinventing the wheel. I'm hoping there is an existing solution or pattern that can be utilized.
Any suggestions are welcome.