posva / pinia-colada

🍹 The smart data fetching layer for Pinia
https://pinia-colada.esm.dev/
MIT License
584 stars 7 forks source link

Add a query filter #36

Open ElisePatrikainen opened 2 months ago

ElisePatrikainen commented 2 months ago

It could be interesting to have a way to filter queries when we look for some specific queries in the cache (a usecase could be the useQueriesState composable, cf https://github.com/posva/pinia-colada/issues/23).

For example, here is the query filter provided by TanStack Query : https://tanstack.com/query/latest/docs/framework/react/guides/filters#query-filters

posva commented 1 month ago

Yes, this would be nice and needed for retrieving some shared state