useEffectReducer icon indicating copy to clipboard operation
useEffectReducer copied to clipboard

prevState in effect?

Open smeijer opened this issue 4 years ago • 0 comments

Would it be possible to expose the prevState to our effects as well?

This would allow us to move the decision to run expensive side effects to the effect, instead of having it in the reducer, wrapping the exec call.

smeijer avatar Jul 02 '20 12:07 smeijer