generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
1. Migration guide
Mayank edited this page Jun 15, 2024
·
1 revision
-
Removal of
ServerTarget
:- We have removed the
ServerTarget
as 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
Core
Component:- If you used the
dp
(Do not persist) flag in theCore
component, remove it. This flag is no longer necessary for protecting SSG.
- If you used the