e2b-dev/fragments

Hydration Error Related to Theme Switching

Closed this issue · 1 comments

Steps to recreate the issue on Firefox 132.0.1:

  1. Load the app as usual and it will default to dark mode
  2. Click the moon icon to switch to light mode
  3. Refresh the browser
  4. A Hydration error occurs

This is due to the issue described here:
https://github.com/pacocoursey/next-themes?tab=readme-ov-file#avoid-hydration-mismatch