Skip to content

Should I set suppressHydrationWarning when using ThemeProvider #6449

Answered by barkovskiy
jungsikjeong asked this question in Q&A

You must be logged in to vote

Hi! I was looking for same problem, there is the answer that I found in the next-themes docs:

Note! If you do not add suppressHydrationWarning to your you will get warnings because next-themes updates that element. This property only applies one level deep, so it won't block hydration warnings on other elements.

It's located here: https://github.com/pacocoursey/next-themes

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@jungsikjeong

Answer selected by jungsikjeong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants