Return type of getters in Pinia not being ComputedRef #13474
Unanswered
soundlake
asked this question in
Help/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.
-
At some point, getters began to return plan type instead of proxied one. And all my code with
<a_value_returned_from_a_getter>.value
are broken.I know. It was a bad practice. I should have used
toValue
. But it was legacy code. (uhum)Do you know from which version the getter returns the plain type instead of
*ComputedRef*
?On the other hand, thinking of the API itself, isn't it more consistent and intuitive to have
ComputedRef
orComputedRefImpl
as the return type of the getter instead of the plain type?Beta Was this translation helpful? Give feedback.
All reactions