-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useSuspenseQuery
's refetch
keeps suspending when variables not changed
#11085
Comments
In the following reproduced code, the process continues correctly when the query result changes. It seems that the Promise is not resolved correctly when there is no change in the Apollo Cache. |
Hey @izumin5210 👋 I'm pretty sure I broke this in #11035 for the final beta release while trying to fix a separate issue (incrementally re-rendering queries with I will make sure to get a fix in for the next |
Thanks for the quick reply! Looking forward to your next release! |
@izumin5210 I've got #11086 up that fixes this issue. I've created a snapshot release that you can try out if you'd like to see this in your own app.
I've confirmed this snapshot release fixes the issue demonstrated in your reproduction: https://codesandbox.io/s/apollo-client-v18-use-suspense-query-bug-forked-cqstj9 |
Fixed with #11086. This will go out with the next |
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. |
Issue Description
When
useSuspenseQuery
'srefetch
is executed,Suspense
fallback is still drawn and does not move forwardLink to Reproduction
https://codesandbox.io/s/apollo-client-v18-use-suspense-query-bug-yg6rzy?file=/src/App.tsx
Reproduction Steps
No response
The text was updated successfully, but these errors were encountered: