Support Immer
potty opened this issue · 4 comments
potty commented
Hi, do you plan to support Immer (https://github.com/immerjs/immer) in reducer function?
cartant commented
What's stopping you from using it?
potty commented
Sure I can use it on my own, but I mean some direct implementation in ts-action reducer function, something like redux-starter-kit is using (https://github.com/reduxjs/redux-starter-kit/blob/master/src/createReducer.ts).
cartant commented
I don't want to add it to ts-action
, but I think having an alternative, Immer-based reducer
in, say, ts-action-immer
would be worthwhile. I'm looking into it, ATM. I've just re-arranged ts-action
and ts-action-operators
into a monorepo. Adding ts-action-immer
should be pretty easy.