I’ve integrated aurelia-store in my app and for the most part it is working well, however my local state is getting overwritten as referenced in “Managing App State”
Keep in mind that the store starts with an
initialState. If the
localStoragemiddleware is registered at the app’s start, most likely the next refresh will immediately overwrite your
localStorageand negate the effect of restoring data from previous runs. In order to avoid that, make sure to register the middleware just after the initial state has loaded.
It’s not clear to me how to determine when the “initial state” has loaded. Can someone point me in the right direction?