Skip to content

useMatches bindings #8

@tom-sherman

Description

@tom-sherman

https://remix.run/docs/en/v1/api/remix#usematches

This is a little tricky as while a basic match can be modelled as:

type match = {
  pathname: string,
  params: Js.Dict.t<string>,
}

It doesn't include handle, the property that is most important from the hook. I'm not sure how best to type this.

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