Skip to content

updating url prop doesn't trigger an update #330

Open
@halcaponey

Description

@halcaponey

version : 3.0.1

<Router url={props.url}>
  // ...
</Router>

In the code above if props.url is updated Router doesn't rerender.
Looking at the code it comes from the fact that state.url is used in the render method and that it's never updated with props.url

I can PR if you want.

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