generated from react18-tools/turborepo-template
-
-
Couldn't load subscription status.
- Fork 1
1. Migration guide
Mayank edited this page Jun 15, 2024
·
1 revision
-
Removal of
ServerTarget:- We have removed the
ServerTargetas we can now prevent FOUC (Flash of Unstyled Content) without using cookies. This change fully supports SSG (Static Site Generation). - Previously, we misunderstood that cookies would re-render only the server component and its children. However, we discovered that using cookies forces the entire page to re-render on each request, negating the benefits of SSG.
- We have removed the
-
Remove
ServerTarget:- If you are using
ServerTarget, simply remove it. Everything else is already taken care of.
- If you are using
-
Update the
CoreComponent:- If you used the
dp(Do not persist) flag in theCorecomponent, remove it. This flag is no longer necessary for protecting SSG.
- If you used the