-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mutation query responses may be cached #115
Comments
Actually, now that I think about it, this is an issue for us because we want to cache some POST requests that we use with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both
useMutation
anduseBulkMutation
may end up using cached query responses if the action doesn't change between mutations (e.g., the POST data remains the same). It seems wrong to me that mutations would be cached.The
query
function has askipCache
flag that needs to be set on these two lines:react-fetching-library/src/hooks/useMutation/useMutation.ts
Line 50 in 9b0abd8
react-fetching-library/src/hooks/useBulkMutation/useBulkMutation.ts
Line 66 in 9b0abd8
I'll submit a PR for this after I free up some time.
The text was updated successfully, but these errors were encountered: