sanity-io / next-sanity

Sanity.io toolkit for Next.js

Home Page:https://www.sanity.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `next/dynamic` lazy loading

stipsan opened this issue · comments

We've seen reports and been able to reproduce that adding use client isn't sufficient to reduce the bundlesize for production, and ensure preview components only add to bundles that are used when draftMode().isEnabled.