Dependent mutations with queryClient.setMutationDefaults
I want to give offline support for a given feature that I had on my application. That feature is a simple for lm that allows to fill a title and N images. Both are made with different requests which the last uses the former result ID.
To give offline support to this feature, we would need to move the callbacks as queryClient.setMutationDefaults for the fact that can be resumed even if the mutation is not mount.
To accomplish that, how can I have two queryClient.setMutationDefaults which one depends on the result of the other?
To give offline support to this feature, we would need to move the callbacks as queryClient.setMutationDefaults for the fact that can be resumed even if the mutation is not mount.
To accomplish that, how can I have two queryClient.setMutationDefaults which one depends on the result of the other?