Would it be possible to export matchMutation
from the library?
#6802
Unanswered
luke-layerhealth
asked this question in
Ideas
Replies: 1 comment 1 reply
-
oh, we export |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to export
matchMutation
from the library similar to how the library exportsmatchQuery
?query/packages/query-core/src/utils.ts
Line 139 in c8442f8
The use case is setting up a
MutationCache
with a defaultonSettled
handler. I want to check if the mutation key matches a filter then fire some default query invalidation. While I can role my own mutation key matching it seems cleaner to usematchMutation
.Beta Was this translation helpful? Give feedback.
All reactions