You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both useMutation and useBulkMutation 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 a skipCache flag that needs to be set on these two lines:
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 useSuspenseQuery. This is actually more of an issue with the design of our API.
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: