Closed aidan-rypens closed 6 months ago
Hey thanks for checking this out. I use the project daily for work and haven't had this issue. Please follow the instructions in the issue template for a reproduction and I'll be happy to take a look. It's probably an edge case with your setup, but I won't be able to tell without a reproduction.
@aidan-rypens just checking in on this one
Hey @aidan-rypens, I am closing this now.
If the issue persists, kindly reopen and provide a reproduction using our StackBlitz template: https://stackblitz.com/fork/jsx-email-repro
Hot reloading for both JSX and JSS seems to work fine if you are editing a template page.
However, if you have - for example - building blocks outside of the 'template' context (as example: a
utils
folder withFooter
orContentBlock
) changes will not trigger a reload. This console indicates:[vite] hmr update
instead of[vite] page reload
.If I'm missing something, let me know. I couldn't find samples with this structure. At least in my opinion - could be wrong - it would be nice to have some reusable generic blocks with prefilled content & styling so only the basics are in your email templates.
Workaround Create a template so it behaves like an email template but also export other stuff that can be reused over emails.