esamattis / immer-reducer

Type-safe and terse reducers with Typescript for React Hooks and Redux
http://npm.im/immer-reducer
MIT License
224 stars 15 forks source link

Consider exposing composeReducers #31

Closed Secretmapper closed 5 years ago

Secretmapper commented 5 years ago

Due to the nature of how immer-reducer works (working on arbitrary pieces of state), composing reducers is pretty much the direction in which the reducers would be created.

I think due to this, it might be a good idea to consider exposing composeReducers as a utility inside the library. It could even be put such that tree-shaking will remove it if unused. Happy to put in a PR if you think it's not out of scope

esamattis commented 5 years ago

Yes, PR welcome!

Secretmapper commented 5 years ago

Any chance we can publish this in a new version :)

esamattis commented 5 years ago

Out with v0.7.6!

Sorry, it took a while. I was on vacation without npm credentials :)

Secretmapper commented 5 years ago

No worries, Cheers!