styles flickering chakra-ui-next with nextjs #2434
Answered
by
ljosberinn
devclouddz
asked this question in
Q&A
-
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.
Answered by
ljosberinn
Nov 10, 2020
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.
0 replies
Answer selected by
chasinhues
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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?