This repository has been archived by the owner on Oct 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 644
Support for additional action arguments #187
Comments
looks like the transition is an internal event. is there a way to add things to location update event? |
params passed to |
It might be better like this: function transition(method) {
return ...arg => ({
type: TRANSITION,
method, args
})
} Then you can pass in an unlimited number of arguments, not just 1 or 2. |
This would make a great PR! 😉 |
timdorr
changed the title
Support for route params
Support for addition action arguments
Jan 14, 2016
timdorr
changed the title
Support for addition action arguments
Support for additional action arguments
Jan 14, 2016
But |
Yes, that is correct. You should use the state property to store extra data about your location. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was using this for a while and thought this might be a quick implementation of router params.
This is just passing the params to the reducer not via URL but via action itself.
at https://github.com/rackt/redux-simple-router/blob/master/src/index.js#L8
if we replace
with
we can do something link
The text was updated successfully, but these errors were encountered: