-
Hi, We've successfully migrated our app to I would like to do the same thing for mutations. Currently, we use a homebrewed What I'm asking:
IOW, is this a thing? // Default QC that gets attached to the Provider
const qc = new QueryClient({
defaultOptions: {
queries: { queryFn: defaultQueryFn },
inserts: { insertFn: defaultInsertFn },
updates: { updateFn: defaultUpdateFn },
deletes: { deleteFn: defaultDeleteFn },
},
}) 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can add a
That’s up to you. You can pass it in as part of the
No because react-query isn’t tied to http |
Beta Was this translation helpful? Give feedback.
You can add a
mutationFn
todefaultOptions
ofmutations
in theQueryClient
, just like you can with queries:That’s up to you. You can pass it in as part of the
variables
, or you can setmeta
to contain that.No because react-query isn’t tied to http