News for hackers. Stuff that matters.
Re:A Simple Way to Route with Redux by theduro on Wednesday November 25, 2015 @03:07PM (#10629316)
This library lack some of the super powerful features that really made me fall in love with redux-router. Being able to get access to params was huge, and having action creators to pushState and replaceState was also huge.
Re:A Simple Way to Route with Redux by jlongster on Wednesday November 25, 2015 @03:08PM (#10629333)
`updatePath` is an action creator, and there's a PR to rename it to `pushPath` and add `replacePath`. And you shouldn't access route params outside of a router component anyway.

(EDIT: ok, the last statement was a simplification. But generally you don't need to, but you could manually move data into the state if you needed to)

Re:A Simple Way to Route with Redux by theduro on Wednesday November 25, 2015 @05:32PM (#10630192)
I get that, but still no access to params and the ability to change them is still a boon for me. I often will use stand to store some basic state for deep linking certain views. For example a data grid and the sort or filter options. I was able to very elegantly execute this with redux-router and its full exposure of the entire route object and API pairity to pushState and replaceState
Re:A Simple Way to Route with Redux by jlongster on Wednesday November 25, 2015 @08:21PM (#10630812)
That's great! Keep using redux-router then. I think you'd find that there's another pattern that works too, but there are multiple ways to do it.