mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-26 14:45:57 +03:00
[GH-ISSUE #35] Extend variables api configuration #246
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BigDog1400 on GitHub (Jan 15, 2024).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/35
Showing a warning for every variable added (that doesn't have a fallback), may cause some confusion for some users. I will like to propose change the api for the variables prop to this
In this proposal, each variable in the array can have an associated 'name', an optional 'defaultValue', and a 'required' flag that defaults to true. This approach could make the handling of variables more flexible and intuitive for users.
@arikchakma commented on GitHub (Jan 15, 2024):
I agree. Let's not add the
defaultValuein the props. Onlynameandrequiredis fine I think. Because we have to manually add thefallback value.