You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how there are PreviewProps when viewing the emails in the preview environment, I'd like to be able to set data for the export environment via an ExportProps.
My use-case is that I'm using supabase which requires you to manually paste in the email templates, but I also have emails in the same directory that are sent via the application and are rendered via the render method. If I use emails export it throws errors for the dynamic emails due to their props being missing.
So to get around this I've needed to supply default props for each email which feels like a hack.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Similar to how there are
PreviewProps
when viewing the emails in the preview environment, I'd like to be able to set data for the export environment via anExportProps
.My use-case is that I'm using supabase which requires you to manually paste in the email templates, but I also have emails in the same directory that are sent via the application and are rendered via the
render
method. If I useemails export
it throws errors for the dynamic emails due to their props being missing.So to get around this I've needed to supply default props for each email which feels like a hack.
Beta Was this translation helpful? Give feedback.
All reactions