-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
getQueryKey should not enforce options #1682
Comments
This seems to be rather more important to us now actually, as I just checked how the query keys are constructed, and the "operation id" is inside the options object and not a separate array element as a prefix, so we can only invalidate with exact options without hacks :/ |
strictly speaking using |
Yes, youre right! :) |
Would anyone be able to clarify what the |
Instead of passing queryKey to invalidateQueries you can pass predicate: (query) => void (or something like that, inside which you can do something like: |
https://github.com/orgs/hey-api/discussions/1672#discussioncomment-12180276
|
Description
Continuing from what was mentioned in #980:
We would like to see support for non-strict version, as we may be invalidating a query in another part of the app that doesn't know of the callers options, but just wants the query to be invalidated
Obviously not a blocker as we can always just go to declaration and figure out how to do it manually but still
The text was updated successfully, but these errors were encountered: