You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom suspender, I'm running into an issue with useLazyQuery and the automatic aborting of in-flight requests. Because the suspense boundary will unmount the rendering component while waiting for the promise to resolve, it immediately gets aborted and throws the error.
We just released v3.7.11 that contains a change for useLazyQuery that will now allow the promise to resolve naturally rather than rejecting with an abort error. I tried this out in a fork of your reproduction and this now works as expected.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.
Issue Description
CC @jerelmiller
Context: #10427 (comment)
When using a custom suspender, I'm running into an issue with
useLazyQuery
and the automatic aborting of in-flight requests. Because the suspense boundary will unmount the rendering component while waiting for the promise to resolve, it immediately gets aborted and throws the error.Link to Reproduction
https://codesandbox.io/s/bitter-fast-wwmqfb?file=/src/Countries/Countries.tsx
Reproduction Steps
Load the sandbox. Will see the error immediately.
The text was updated successfully, but these errors were encountered: