-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
🏓 awaiting-contributor-responserequires input from a contributorrequires input from a contributor
Description
Issue Description
Based on its documentation and typing, useSuspenseQuery lacks support for polling via pollInterval. However, it actually works! Seems like this is because the hook makes a call to watchQuery with whatever options are specified. We'd love to keep using this, along with nextFetchPolicy, which hits the same issue. Is there any reason not to offer official support?
My reproduction includes a call to useSuspenseQuery with a pollInterval set, which yields a type error. The query resolver logs each time it is called, so you can observe polling in the browser console.
P.S. Would be awesome to offer a TypeScript-ready CodeSandbox template!
Link to Reproduction
https://codesandbox.io/p/devbox/eloquent-wescoff-k44smw?workspaceId=ws_8rvGwpeFUisRWig4LxWzQN
Reproduction Steps
No response
@apollo/client version
4.0.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🏓 awaiting-contributor-responserequires input from a contributorrequires input from a contributor