resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

Live refresh not working for components #1433

Open quentez opened 3 weeks ago

quentez commented 3 weeks ago

Describe the Bug

The watch system to live refresh the web UI when something changes works for the email templates themselves, but not the components they depend on, even when they're in a _components subfolder.

Which package is affected (leave empty if unsure)

react-email

Link to the code that reproduces this issue

n/a

To Reproduce

  1. Create a _components subfolder.
  2. Create a header.tsx re-usable component.
  3. Use that component in an email template.
  4. Modify that component.

Expected Behavior

The web preview UI should automatically pick up the new changes. Instead, a manual refresh is needed.

What's your node version? (if relevant)

No response