is it possible to reset all states of variables to initial state on logout with one command?
this for me didn’t work
$f7.views.main.router.navigate('/', {
reloadAll: true,
ignoreCache: true,
clearPreviousHistory: true
});
is there a way to initialise the store states without having to create a method to set all
states to null as below? the reason I have a bunch of states and resetting them manually does not make sense if there is a simple way in one line to do it!
I do not want to do this for all my states on logout, see below…
state.stores = null;
.... /// (long list)
any tip?