TanStackT
TanStack3y ago
3 replies
verbal-lime

implement polling in react with useQuery

I want to implement a polling query in react, but i want the query to stop re-fetching as soon as the expected data hits the app

It's more like re-fetching until the data has been defined (for context, I'm using it to verify solana pay transactions https://solanapay.com/

What's the best way to do this?
Was this page helpful?