Replies: 1 comment 7 replies
-
|
Thanks for the suggestion, I added a note. Regarding passing parameters: if they don't come from a global piece of state like the route or the store, you should use When using |
Beta Was this translation helpful? Give feedback.
7 replies
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.
-
In
@tanstack/vue-query, reusable queries were often implemented usinguseQuery, like this:In
@pinia/colada, creating a regular composable viauseQuerywith an inlinequeryand using it across different components may trigger the following warning:To avoid this issue, the migration guide could mention
defineQueryas the recommended approach for defining reusable queries, like the example in Reusable Queries:Would it make sense to include this in the migration doc?
Additionally, I have a question regarding reusable queries that need to accept parameters from the components layer.
What is the recommended approach for this?
Currently, I am using something like this:
Beta Was this translation helpful? Give feedback.
All reactions