apollographql / apollo-feature-requests

🧑‍🚀 Apollo Client Feature Requests | (no 🐛 please).
Other
130 stars 7 forks source link

Support for Auto fetch Query after some time. #439

Closed dotsinspace closed 2 weeks ago

dotsinspace commented 5 months ago

Hello, Is there any possible implementation for auto fetch after given time period. like intervals and all..i fearing to use setTimeout on front-end as it might impact my app on long run with many intervals. like setting it globally or passing any period as interval so that query do fetch after given interval..removing need of Subscription or Live Store implementation for me..Its too boring for me to it for each component.

jerelmiller commented 2 weeks ago

Hey @dotsinspace 👋

It sounds like you're looking for something like polling which already exists in useQuery today. Does this address what you're looking for?