atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
198 stars 28 forks source link

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

Open spendo-atl opened 2 years ago

spendo-atl commented 2 years ago

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

albertogasparin commented 2 years ago

Seems like the issue is about the actual support of history v5, that currently does not work at all