TanStackT
TanStack2y ago
3 replies
full-green

Controlled state mutation in useQuery

Hi! I am looking for some way to control when states are updated. So the use case is like based on some user action I am animating somwthing for 1-2s and based on the same callback I'm refetching the query or updating the params being passed to it. So, I want that both animation and data fetching happens in parallel and onAnimationEnd the data is updated into states exposed by react query. Kindly help
Was this page helpful?