Skip to content

Using If is not infering types and erroring #2

@babur001

Description

@babur001

When some is value is falsy the component inside <If /> is being rendered and showing ts error!

<If is={false}>{<>{console.log('this is being rendered')}</>}</If>

if (!clientRect || !textContent) return null;

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