Unexpected refs from getters when using mapStores
#1410
Unanswered
lwansbrough
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.
-
I'm using getters that return a function, and when I import that store and use
mapStores(useAlertsStore)
, I get the following when I logthis.alertsStore
:and the definitions:
Obviously the getters are refs, but my question is: why? Is there any way to maintain the reactivity without having to do
this.alertsStore.getAlerts.value(titleSlug)
?Beta Was this translation helpful? Give feedback.
All reactions