We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using next-themes with suspense, suspense is triggered twice.
I'm not even using react strictmode. The problem only occurs when using next-themes.
The same happens in production.
codesandbox
with next-themes
next-themes
without next-themes
The text was updated successfully, but these errors were encountered:
This happened because I was not using ReactQueryStreamedHydration in my React query.
Sorry, something went wrong.
No branches or pull requests
Problem
When using next-themes with suspense, suspense is triggered twice.
I'm not even using react strictmode.
The problem only occurs when using next-themes.
The same happens in production.
Demo
codesandbox
with
next-themes
2024-04-22.5.30.49.mov
without
next-themes
2024-04-22.5.31.42.mov
Version
The text was updated successfully, but these errors were encountered: