Skip to content

Type definition doesn't allow function to be passed into <Match /> children. #458

@kim3er

Description

@kim3er

This should work:

<Match path="/cookie-policy">
  {({ matches }) => !matches && <CookieConsent />}
</Match>

But the following error is returned:

Binding element 'matches' implicitly has an 'any' type.ts(7031)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions