Skip to content

this.$state in setup store #2130

Closed Answered by posva
ohroy asked this question in Help and Questions
Discussion options

You must be logged in to vote

Unfortunately, it cannot be implemented because it cannot be built until the store setup function is executed. It does exist in methods but cannot be typed in TypeScript.

In the end, this doesn't change much as having state divided into refs is one of the advantages of the composition API, it enables refactoring and grouping features within composables.

Replies: 1 comment

Comment options

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