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
Assuming I have a Pinia store containing a selectedParentId, I'd like to create a computed getter for retrieving the parentItem details from server state using Vue-query { data }.
Inside of a component/setup method I can do the following, which works fine:
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
-
Assuming I have a Pinia store containing a selectedParentId, I'd like to create a computed getter for retrieving the parentItem details from server state using Vue-query
{ data }
.Inside of a component/setup method I can do the following, which works fine:
However, I'd like to move this getter
selectedParentItem()
into the pinia store as I'm using it in multiple places.Is there any way I could use the useQuery data inside of a Pinia getter function?
Beta Was this translation helpful? Give feedback.
All reactions