Yarikx / reductor

Redux for Android. Predictable state container library for Java/Android
Apache License 2.0
463 stars 27 forks source link

How to make a reducer enhancer #32

Open juanpmarin opened 7 years ago

juanpmarin commented 7 years ago

Hi ! I'm trying to figure out how to make a reducer enhancer like the one shown here: http://redux.js.org/docs/recipes/ImplementingUndoHistory.html#second-attempt-writing-a-reducer-enhancer

Do you think that is it possible to do with reductor ? Thanks ! Sorry for my english

Yarikx commented 7 years ago

Hi. Enhancers (as they are implemented in Redux.js) are not implemented due to static nature of Java. Reductor support middlewares out of the box (which is 90% of use-cases where you would need enhancer)

But If you have nice idea how to implement them in Reductor, you are very welcome :)