evant / redux

Redux ported to java/android (name tbd)
Apache License 2.0
191 stars 24 forks source link

Change reducer parameters order #7

Open guitcastro opened 6 years ago

guitcastro commented 6 years ago

Redux framework defines reducers as:

(previousState, action) => newState

And all implementations I found for redux (Java, Kotlin, Swift, JS ...) the first argument is the state and the second one is the action, although this library use action as the first parameter and the state as the second.

So I guess to make sense use the same parameters others from the oficial redux docs.

evant commented 6 years ago

Yeah, makes sense. Will have to figure out the backwards compatibility story around this if any.