-
Notifications
You must be signed in to change notification settings - Fork 0
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
Similarity with react-router-redux #1
Comments
check out my comments on reactjs/react-router-redux#259 (comment) The difference is in intention/sentiments. I see history as more state that should should exist/sync into redux store; e.g. it should be available and act independently of react-router... although, probably will be used together. I would love to hear your opinion and also looking for contribution; as well as sanity checks :) cheers |
@webmasterkai my initial interest in redux-simple-router (the original react-router-redux) was it's simplicity. I have several projects where I do not need complex routing, nested routing, etc. (stuff react-router offers). react-router is awesome, but may be over complex depending on needs/project. if we evolve history for redux, I believe is more powerful than gluing to react. |
Thanks for your comment on 259! I agree wholeheartedly. I've used react-router since it began but I now realize a URL is a serialized state slice (at best), more than it is a "route". I'd like for a URL to have the ability to completely restore the state of an application, not just a slice of it. Something like I tried so hard to like Initially I thought it best to integrate with the I started hacking away at a different solution: https://github.com/cape-io/redux-history-sync Basically, I wanted navigating to a new "page" to act like it. I want UI state to reset/restore as I navigate to a new page or click back/forward. I usually don't want the filters I enabled on one page to carry over to another page. Clicking the browsers back/forward buttons while in the app is actually I also want browser history represented in redux. Basically Redux should keep track of the "pages" visited and what the state at each of those pages is. I want the app to understand where the user is, and where they have been. I want to be able to render a list of all the "pages" a user has visited from the Redux store. I want clicking on one of those pages to navigate to that page the same way selecting it from the browsers history dropdown would. If I click "reset" in Redux DevTools I want it to send my browser back to where I started. DevTools is about time travel after all. If I have navigated around to 6 pages and click "Reset" I want it to be the same as clicking my back button 6 times. After clicking "reset" proceeding to click the browsers back button should exit the app to whatever page I was on previously. Have you looked at https://github.com/callum/redux-routing by chance? I haven't had my morning coffee so I don't know if this is coherent. Hopefully a little... |
Have you taken a look at rackt/react-router-redux?
It's similar to what you have here.
https://github.com/rackt/react-router-redux/blob/master/src/index.js
Just wondering what you might have here that isn't there.
Thanks!
The text was updated successfully, but these errors were encountered: