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 · 16 replies

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 16 replies

You must be logged in to vote
6 replies
@posva

@nerdcave

@posva

@nerdcave

@popadicbranislav

Answer selected by nerdcave

You must be logged in to vote
2 replies
@nerdcave

@EliphazBouye

You must be logged in to vote
4 replies
@nerdcave

@Alosies

@gllinzbk1

@drbarto

You must be logged in to vote
4 replies
@robsonsobral

@Kcko

@drbarto

@robsonsobral

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