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

Using "hash" based routing with redux-first-router #485

Open
nitinkatyal1314 opened this issue May 31, 2022 · 3 comments
Open

Using "hash" based routing with redux-first-router #485

nitinkatyal1314 opened this issue May 31, 2022 · 3 comments

Comments

@nitinkatyal1314
Copy link

nitinkatyal1314 commented May 31, 2022

Hi, I have a use case where I want to enable the react routing via hash values in url.
For e.g - /home#1 , /home#2

These hash values "1" and "2" would basically setup a state of the component and render it.

Currently, I don't see any documented mechanism to accomplish this out-of-the-box via redux-first-route. The location reducer does not exposes the hash value and similarly I can't dispatch actions to update the hash as well.

Is there any way to solve this?

@hedgepigdaniel
Copy link
Contributor

@nitinkatyal1314
Copy link
Author

You need https://github.com/respond-framework/rudy
The documentation for Rudy clearly mentions that this is a work in progress and some features are incomplete. I am not sure if I can rely on it for enterprise platform.

@colmbrady
Copy link

I dont recommend using this fork, but here is a commit that shows how we implemented hash routing.

Perhaps you could cobble a P.R together for this repo from that?

orionhealth@1e868f2#diff-d6f2993c842d188de373ad0e490bdfe1958ca28fdbd256617733be1bfb08a304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants