Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a query filter #36

Closed
ElisePatrikainen opened this issue Apr 28, 2024 · 2 comments
Closed

Add a query filter #36

ElisePatrikainen opened this issue Apr 28, 2024 · 2 comments
Labels
✨ feature request a new feature request

Comments

@ElisePatrikainen
Copy link
Collaborator

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 #23).

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

@ElisePatrikainen ElisePatrikainen added the ✨ feature request a new feature request label Apr 28, 2024
@posva
Copy link
Owner

posva commented May 16, 2024

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

@posva
Copy link
Owner

posva commented Aug 11, 2024

This is now possible with .getEntries(). The resulting entries can be passed to individual methods instead of duplicating methods

@posva posva closed this as completed Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature request a new feature request
Projects
Archived in project
Development

No branches or pull requests

2 participants