Replies: 1 comment 5 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.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
@tanstack/vue-query
, reusable queries were often implemented usinguseQuery
, like this:In
@pinia/colada
, creating a regular composable viauseQuery
with an inlinequery
and using it across different components may trigger the following warning:To avoid this issue, the migration guide could mention
defineQuery
as 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