Skip to content

Idea: support URL objects #1341

@rauchg

Description

@rauchg

Everywhere we support string href, we can support a pathname + object/string query object:

<Link href={ pathname: '/aaa', query: { a: 'b' } }>
Router.push({ pathname: '/woot', query: { test: 2 } })

Would make many lives easier. AMA

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