Nextjs 14 + Daisy UI + Next Themes = Flickering on initial local change #2674
Unanswered
ozgurcoban
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm new to Next.js and am experiencing an issue where the page flashes when I change languages. This only happens once.
I've seen others solve similar problems by using the cookies function in Next.js. However, the cookies function requires dynamic rendering, as it's a dynamic feature, and the only place I can implement it is in the root layout. Meanwhile, I intend to have my site statically generated (SSG).
Does anyone have an idea of what could be wrong?
Screen.Recording.2023-12-18.at.11.13.45.mov
ThemeProvider.tsx
ThemeSwitcher.tsx
layout.tsx
Beta Was this translation helpful? Give feedback.
All reactions