Learn how to fix a layout shift on initial page load in your app
Suspense
boundary. The fallback happens to be null
in this case. This effectively causes the layout shift.Suspense
boundary when serving a page.useEffect
(runs post-hydration)useMemo
to avoid identity changes during hydration.startTransition
to mark updates as non-urgent, preventing fallback rendering.