In the onSettled callback of useMutation, I want to trigger a function that resolves once a certain db condition is met (via a utility I wrote that utilizes pstgresql pubsub) so that in the .then() I can invalidate a queryKey used elsewhere in my app.
In the onSettled callback of useMutation, I want to trigger a function that resolves once a certain db condition is met (via a utility I wrote that utilizes pstgresql pubsub) so that in the .then() I can invalidate a queryKey used elsewhere in my app.