inputlogic / with-preact-fork

Preact skeleton with Babel/ES6 for Brunch
1 stars 0 forks source link

Get redux devtools working. #26

Closed adriaanwm closed 7 years ago

adriaanwm commented 7 years ago

Doesn't allow features like time travel, but is a pretty nice improvement over using the console to log state changes and actions.

@staydecent is there a reason reducers in atom use (action, state) while redux use (state, action) ?

staydecent commented 7 years ago

It was to make reducers curryable -- You could bind an action function that you can reuse with new state values. This is how I wrote my reducers in a side project when I made atom. But in you work stuff, we basically just use atom-lens-reducer.

ANYWAY, does it make sense to migrate to Redux instead of merging this? @adriaanwm

adriaanwm commented 7 years ago

@staydecent yeah If we're going to make the switch then lets hold off on this one.

staydecent commented 7 years ago

Cool! Closing in favour of swapping to Redux.