[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[X] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
I have to call .update(createInitialState()) for each store instance.
A way to access the Akita instance and to reset the entire store to initial state.
There is no easy way to reset all Akita stores at once,
common use case is when a user wants to logout.
Yes, It's a helpful suggestion. I need to think about the API.
... yep, it looks like a helpful functionality.
@DanielNetzer I was thinking about something like:
import { resetStores } from '@datorama/akita';
resetStores({ exclude: ['storeName'] });
looking great, I can make a PR if you don't mind.
Go for it.
Most helpful comment
@DanielNetzer I was thinking about something like: