Skip to content

defineQuery in composables with parameters #100

Closed Answered by posva
niklaswolf asked this question in Questions
Discussion options

You must be logged in to vote

This can be achieved now with defineQueryOptions: https://pinia-colada.esm.dev/guide/queries.html#Organizing-Queries 🎉
In your specific case, you can use the query within a composable

You can do dynamic queries with keys too: https://pinia-colada.esm.dev/guide/query-keys.html#Typing-query-keys

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@posva
Comment options

@niklaswolf
Comment options

@posva
Comment options

@niklaswolf
Comment options

@posva
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants