Skip to content

Iterate over all stores - is _s an API guarantee? #1859

Discussion options

You must be logged in to vote

_s is internal so it could change anytime and it wouldn't be a major version. It's unlikely to disappear though as it's crucial internally. You can create a similar solution with a plugin:

const stores = new Set()
pinia.use(({ store }) => {
  stores.add(store)
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Comment options

You must be logged in to vote
3 replies
@hjisaac
Comment options

@tintin10q
Comment options

@hjisaac
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants