TanStackT
TanStack2y ago
8 replies
brilliant-lime

V5: setting global state

In V5, the onSuccess callback was removed from useQuery, but I need to set the global state after I receive the data. Is there a better alternative other then using useEffect and monitoring data?
Was this page helpful?