Skip to content
Mayank edited this page Jun 15, 2024 · 1 revision

Migration Guide

Migrating from v0 to v1

Key Changes

  1. 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.

Migration Steps

  1. Remove ServerTarget:

    • If you are using ServerTarget, simply remove it. Everything else is already taken care of.
  2. Update the Core Component:

    • If you used the dp (Do not persist) flag in the Core component, remove it. This flag is no longer necessary for protecting SSG.
Clone this wiki locally