useEffectReducer
useEffectReducer copied to clipboard
prevState in effect?
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.