Skip to content

react-resource-router does not render matched component on redirect or hash change with hashrouter #111

@spendo-atl

Description

@spendo-atl

If you use createHashHistory with react-resource-router like so:

<Router routes={routes} history={createHashHistory()}>
        <RouteComponent />
</Router>

When you change the url hash through or manually it does not render anything (or the matching route component).

When reloading the page with the correct hash route it then matches and renders the correct component.

We've created a minimal reproducible example below:
https://codesandbox.io/s/react-resource-router-hash-router-bug-lmzfe

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions