Skip to content

Catch all routes #29

Description

@amiralies

How should one use catch all routes in router?
https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes

I think there's no way of doing this zero cost, right?
we should use an abstract type and then convert that type to an internal type like:

type query = String(string) | Array(array<string>)
type router = {
  // ...
  query: Js.Dict.t<query>,
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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