Replies: 1 comment
-
You would probably want to set this up outside of react query and then react to events by populating the query client. This article could be helpful: https://tkdodo.eu/blog/using-web-sockets-with-react-query |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do we handle long polling xhr call from react-query? Do we have some example?
I saw a lot of examples to use refetchInterval(), but this will make an extra api call, and it's not long polling. The long polling call will be only one xhr call, and we get diff events like progress, load, loadEnd, etc.
Beta Was this translation helpful? Give feedback.
All reactions