Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spendo-atl opened this issue Jan 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@spendo-atl
Copy link

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

marionebl added a commit to marionebl/react-resource-router that referenced this issue Jan 27, 2022
@albertogasparin
Copy link
Collaborator

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

@albertogasparin albertogasparin added the enhancement New feature or request label Jan 28, 2022
liamqma pushed a commit that referenced this issue Feb 14, 2022
Ensure compatibility with history@5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants