styles flickering chakra-ui-next with nextjs #2434
-
i did build a little website using nextjs and chakra ui and it was awesome and fast but i have one problem when the page first load or i refresh it manually i get ugly css for 2 to 3 seconds and sometimes it loads without css and am wondering what am doing wrong is it a common problem and is there a solution or a workaround?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Chakra uses Emotion under the hood, which adds styles right when you render the component for the first time so I don't see any possibility with this happening. Do you have a repository to look at? Do you SSR or SSG? Does this happen in prod too? |
Beta Was this translation helpful? Give feedback.
Chakra uses Emotion under the hood, which adds styles right when you render the component for the first time so I don't see any possibility with this happening.
Do you have a repository to look at? Do you SSR or SSG? Does this happen in prod too?