Search code examples
ngxs

Preserve the state after broswer tab is refreshed


How to preserve the state after browser tab is refreshed in NGXS? Ngrx version of the question is asked here?


Solution

  • You can preserve state using the storage plugin:

    https://ngxs.gitbook.io/ngxs/plugins/storage