Tailwind breaks fast reload *sometimes*, causing component reload #74484
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Link to the code that reproduces this issue
https://github.com/maxiedaniels/fast-refresh-bug
To Reproduce
Current vs. Expected behavior
Fast refresh should maintain the useState value if adjusting the paragraph text. It works great if Tailwind isn't installed.
If Tailwind is installed, it will sometimes reload TestComponent.
Some notes:
npx tailwindcss -i ./app/main.css -o ./app/output.css --watch
instead, and it seems this fixes the issue. So, i'm unclear on if the issue relates to postcss or if it's how postcss interacts with tailwind?Provide environment information
Which area(s) are affected? (Select all that apply)
Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: