Method storeToRefs destruct invalid types #1930
Unanswered
filipbekic01
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
It's too simple
Steps to reproduce the bug
Using composition API, inside component, destruct computed refs from store using storeToRefs method.
Expected behavior
It's expected that TS distinguish difference between Ref and ComputedRef.
Actual behavior
Destructed variable type from store is Ref instead of ComputedRef.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions