Cannot use generic values in defineStore with setup stores #2069
-
Reproductionhttps://stackblitz.com/edit/github-wn9aqn-1ldb7t Steps to reproduce the bug
Expected behaviorShould have no typescript errors and be able to useStore normally after specifying generic with setup stores Actual behaviorGetting typescript error, maybe it is unable to unwrap types because of the generic Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Mar 11, 2023
Replies: 1 comment 2 replies
-
This is indeed a limitation Vue refs due to unwrapping, note it has been mentioned in a couple issues before. Moving to a discussion |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Q16solver
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is indeed a limitation Vue refs due to unwrapping, note it has been mentioned in a couple issues before. Moving to a discussion