Skip to content

Correct way to conditionally use hooks #149

@jonflynng

Description

@jonflynng

Hi, we were wondering the best way to conditionally use the hooks from this library to avoid react errors like 'rendered less/more hooks than last time'. Passing in null gives the following type error, but works well:

Screenshot 2021-10-15 at 09 43 36

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