alfredmadere.bsky.social
@alfredmadere.bsky.social
@tkdodo.eu Is the following an anti-pattern?
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.
May 6, 2025 at 7:36 PM