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
@joeosburn-desiringgod recommended I open these ideas here.
It's pretty helpful to be able to declare some options to be passed into the component as required. By default, they would be optional. This helps ensure that the errors don't send us in the wrong direction. This especially happens when we have nested components.
Example:
<%= icon(type: 'arrow') %>
Here, type is required because anything else doesn't make sense (there is no default value for this one). Display some sort of error like "The component 'icon' requires type to be defined" (or something similar) would make our components easier to use and learn.
The text was updated successfully, but these errors were encountered:
@benhutton Yes! Though, at this point, I'm thinking the implementation of the two will be very different and probably unrelated. However, I'll get to that once I have a firm idea in mind.
Idea
@joeosburn-desiringgod recommended I open these ideas here.
It's pretty helpful to be able to declare some options to be passed into the component as required. By default, they would be optional. This helps ensure that the errors don't send us in the wrong direction. This especially happens when we have nested components.
Example:
Here, type is required because anything else doesn't make sense (there is no default value for this one). Display some sort of error like "The component 'icon' requires type to be defined" (or something similar) would make our components easier to use and learn.
The text was updated successfully, but these errors were encountered: