Skip to content

Passing arguments to useStore()? #826

Closed Answered by posva
nerdcave asked this question in Help and Questions
Nov 23, 2021 · 4 comments · 11 replies
Discussion options

You must be logged in to vote

I usually add an action and calling upon creation because having it as an argument could be misleading as it's only used if the store created that time

const store = useStore()
store.init(arguments)

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
5 replies
@nerdcave
Comment options

@posva
Comment options

@nerdcave
Comment options

@posva
Comment options

@nerdcave
Comment options

Answer selected by nerdcave
Comment options

You must be logged in to vote
2 replies
@nerdcave
Comment options

@EliphazBouye
Comment options

Comment options

You must be logged in to vote
4 replies
@nerdcave
Comment options

@Alosies
Comment options

@gllinzbk1
Comment options

@drbarto
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants