Replies: 4 comments 2 replies
-
I believe this is what you are referring to: https://beta.nextjs.org/docs/data-fetching/fundamentals
I agree a bit of clarification regarding this would be most welcome. |
Beta Was this translation helpful? Give feedback.
-
But there'll always be needs for client-side fetching, right? After a page is loaded and interactive. So will SWR be mostly just for that scenario in the future? Or is it the case that Server Components will eventually completely eliminate the need of client-side fetching? |
Beta Was this translation helpful? Give feedback.
-
I had the same questions. and it is also my understanding that swr is no longer needed when using the app folder. |
Beta Was this translation helpful? Give feedback.
-
There's always a need for client-side fetching |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reading the Nextjs13 docs, and it says using SWR could hurt performance and Fetch is not allowed in client components? What? Vercel has a team building out this incredible library, and now they are basically saying it has no future. Yeah, you don't have to use the app folder in NextJs13 right now if you don't want to, but it's clear what direction NextJs is heading in. So if you build on SWR you will have to refactor everything eventually once the app folder becomes standard. Why did Vercel do this? What was wrong with SWR exactly? Perfectly solved data fetching issues client side.
Beta Was this translation helpful? Give feedback.
All reactions