Replies: 1 comment
-
|
@gavan-x In App Router,
This effectively achieves SSG-initial-data. The "Page" fetches once at build time -> passes JSON to Client -> Client SWR takes over. |
Beta Was this translation helpful? Give feedback.
0 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.
-
SWR docs still mention using getStaticProps which is not available for the App router, since Next 13.
I'm still unable to find some up to date docs on SSG for Client components, given my Page.tsx is a Client Component and I do useSWR.
Beta Was this translation helpful? Give feedback.
All reactions