Named Stores #2342
litvinenkow
started this conversation in
Ideas
Named Stores
#2342
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Don't you thought of named Stores like named Routes?
You have just maybe 3-5 similar entities that uses same stores but some internal options that changes inside options within name change and you need to setup them one for one, why not just create some store like
export const useNamedStore = defineNamedStore('namedstore', 'myneedednameorparam', {...options});
and use it like
const myNamedStore = useNamedStore('myneedednameorparam');
maybe with some internal access to this "nameorparam" inside
Beta Was this translation helpful? Give feedback.
All reactions