You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But due to translating computed to getters - there is some unclear interactions with them. And even more - typing failing when i tried to use computed as intended inside store.
There is as much as possible simplified example - i hope that's enough to understand point :>
Is this wrong approach or i need to know something else?
edited
Probably there should be the way of typing those refs/computeds to proper use it inside store and in components? Cuz they used to be Ref'ed, but behavior as actually proxied entities.
edited x2
Guess shallowRef "is the way" (c)
But i still need confirmation or another way, if somebody could provide :>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My goal was to provide "composable" from store to work with exact object with some key.
For example:
But due to translating computed to getters - there is some unclear interactions with them. And even more - typing failing when i tried to use computed as intended inside store.
There is as much as possible simplified example - i hope that's enough to understand point :>
Is this wrong approach or i need to know something else?
edited
Probably there should be the way of typing those refs/computeds to proper use it inside store and in components? Cuz they used to be Ref'ed, but behavior as actually proxied entities.
edited x2
Guess shallowRef "is the way" (c)
But i still need confirmation or another way, if somebody could provide :>
Beta Was this translation helpful? Give feedback.
All reactions