TanStackT
TanStack16mo ago
9 replies
then-purple

How to trigger a function when a query is disabled?

I have a query that gets disabled once a certain condition is met (via setting the
refetchInterval
to
false
). I also want to execute a function once the query is disabled. How can I do it?
image.png
Was this page helpful?