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
Maizzle is amazing! Just wondering how to preview emails in the dev ui without any data. (btw. there is no word in the docs about how to add data to the mails, e.g. by use of props)
Which works fine, BUT the dev UI will produce errors because name is undefined. Using withDefaults() is not an option as this may lead to embarrassing errors when props are forgotten.
Proposal
Create a compiler macro that only affects the dev ui. Something like:
This discussion was converted from issue #1799 on July 20, 2026 10:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Maizzle is amazing! Just wondering how to preview emails in the dev ui without any data. (btw. there is no word in the docs about how to add data to the mails, e.g. by use of props)
Minimal example of an email template:
Now my backend (pure Nitro v3 project) would call:
Which works fine, BUT the dev UI will produce errors because
nameis undefined. UsingwithDefaults()is not an option as this may lead to embarrassing errors when props are forgotten.Proposal
Create a compiler macro that only affects the dev ui. Something like:
Or possibly create another wrapper to keep type safety, but that would result in a double wrapper when using
withDefaults():All reactions