-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bugfix: make suspense and revalidateIfStale work together #1851
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8f6b489:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The fix looks good to me, would you mind also adding a test case to ensure it doesn't break in the future?
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
No problem! |
* bugfix: make suspense and revalidateIfStale work together * test: add test for revalidateIfStale used with suspense
Does this mean the Suspense will be supported in V2? I got the feeling that there is a lot more to implementing suspense then is indicated here based on the discussions we've had. |
* bugfix: make suspense and revalidateIfStale work together * test: add test for revalidateIfStale used with suspense
* bugfix: make suspense and revalidateIfStale work together * test: add test for revalidateIfStale used with suspense
Summary
Today,
revalidateIfStale
is ignored when usingsuspense: true
.This fix makes
revalidateIfStale
behave consistently with or withoutsuspense