-
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
Suspense Mode #58
Comments
Yes, I think the docs might be misleading when using the word fetch, as you are supposed to make your own handler, as oppose to pass As for the second part, it happens because there's a few other values coming out from the hook, and in this case the
When I run the above, I see three |
Thank you! We'll make the documentation about The second question should be related to #57. |
Should be fixed in |
I noticed two problems with the suspense mode.
The default example
useSWR('/api', fetch, { suspense: true })
doesn't work because it returns a readable stream.When I modified the default example and returned data, I noticed, the component was rendered multiple times.
The text was updated successfully, but these errors were encountered: