Replies: 1 comment 6 replies
-
Is there a minimal reproduction repository you can share with us so we can see where you are using your swr code? |
Beta Was this translation helpful? Give feedback.
6 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.
-
To preface: I'm new to next.js and swr.
In the client side data fetching section it says to "First, immediately show the page without data. You can show loading states for missing data. Then, fetch the data on the client side and display it when ready."
When attempting to do this, swr is still making a call to the backend from the server side, which is never used because it's not waited for by next. This doesn't seem right to me. I know I can disable ssr for components but that doesn't seem to be what the docs are asking me to do. Am I doing something wrong? Can someone show me an example of exactly what the docs are describing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions