Skip to content

show uses a truthy source, but doesn't accept a primtive nil. #56

@TaylorsRus

Description

@TaylorsRus

show will error if you pass nil to the first arg. To combat this, you must pass Source or Source(nil).

While not accepting a primtive non-nil value is valid due to the type checkers limitations- I think show should accept nil, to improve DX by reducing bloat props, for example, prop Selected may be true or false, but you can pass a falsy value by passing no prop at all, so prop.Selected == nil, which you can then pass into show.

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