redux-first-router
redux-first-router copied to clipboard
Using "hash" based routing with redux-first-router
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?
You need https://github.com/respond-framework/rudy
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.
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?
https://github.com/orionhealth/redux-first-router/pull/1/commits/1e868f21d7a81e4bbc89a43a49b9912c27da92a2#diff-d6f2993c842d188de373ad0e490bdfe1958ca28fdbd256617733be1bfb08a304