X Tutup
Skip to content

Read query parameters from route #4225

@sumigoma

Description

@sumigoma

Is there currently a way to read query parameters from the route? For instance, if RouteConfig is configured with { path: '/articles/:id', as: 'article', component: Article } and the user navigates in the browser to

http://localhost:3000/articles/someId?sort=ASC&page=2

how do I get access to the value of "sort" and "page"? Will this be supported in the router?
(N.B. I can get id: "someId" through routeParams without a problem but I would like the query params. I see bits to generate queryParams and a "routeRecognizer" class, but no public methods..)

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

      X Tutup