|
|
|
|
|
by hknd
2080 days ago
|
|
We used to have that but moved to an approach with multiple "rootStores" per self-contained route (sometimes we have more than 1 root store in such a scenario). But we also have multiple smaller stores which are not connected to the root store.
Think: multiple not-connected trees where each node is a store. I must agree that both approaches have pros and cons, e.g. passing down data down a long path of stores is annoying. |
|
Out of curiosity, how do your 'not connected' stores know when, say, a user logs out?
Also, I suppose you have to write code, bespoke to each object, to be able to reset these objects too?