Next.js Discord

Discord Forum

Chakra extendTheme increases the first load size of NextJS App

Unanswered
rex1410 posted this in #help-forum
Open in Discord
I have a NextJS App, where I am using Chakra UI. I observed that when I use the ChakraProvider without a custom theme, the first load stats given by @next/bundle-analyzer are decent, in the green zone. But when I add custom theme, it rises up quite a bit into the yellow zone, and VS Code's Import Cost Extension gives me a hint that it might be because of the extendTheme function of Chakra.

Is there any way to tackle this issue?

(Cannot type out the entire thing here)

https://stackoverflow.com/questions/77476378/chakra-extendtheme-increases-the-first-load-size-of-nextjs-app

0 Replies