Skip to content

Why do I have to provide the 'error' property ? #25

@fbeaufume

Description

@fbeaufume

Hi. This is a nice component. Thank you for sharing.

I have a concern about the 'error' property. Since I have to provide it, I have to compute myself the boolean using the current selected interval and disabled intervals, otherwise the initial red-or-green color of the component can be wrong.

This feels weird and a bit overly complicated.

Could you compute it inside the component instead ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions