Skip to content

Documentation says query params are in this.props.query #1915

@trotzig

Description

@trotzig

The documentation around where query params are located in props is a bit confusing. The README mentions // route components are rendered with useful information, like URL params and then right below there's a line using this.props.userId. The UPGRADE_GUIDE documentation mentions this.props.query (inferred from the table in the "State mixin" section). The "query-params" example uses this.props.location.query to locate params. And so I'm pretty sure that's what I need to use.

It would be good to get some better documentation around how to use query params. It's also likely I've missed something in the docs. The google index is probably not completely up to date given that v1.0.0 is fairly new.

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