TanStackT
TanStack4y ago
5 replies
dead-brown

Keep data & error while refetch is loading

Hello! I'm trying to utilize the refetchInterval to poll on an endpoint, and utilize the data & error in the template. However it seems like whenever a refetch is initiated, the data and error props from the useQuery call are cleared until loading is complete, which results in the content blinking out for a short time. Is there a way to wait to update those until after the new fetch resolves?
Was this page helpful?