Pass custom data to mutate function
Hi
I have a custom hook wrapping useMutation. onSuccess callback is used to invalidate some qeries and show a notification. Basically this notificaitons is needed for each call except one. Can I pass a condition to onSuccess so I can control the behaviour when calling mutate() ?
thanks
I have a custom hook wrapping useMutation. onSuccess callback is used to invalidate some qeries and show a notification. Basically this notificaitons is needed for each call except one. Can I pass a condition to onSuccess so I can control the behaviour when calling mutate() ?
thanks