Closed ErikDakoda closed 3 years ago
Sounds awesome ! I'll review more deeply later on but I already see unit tests. @Apollinaire @SachaG what's your opinion on this?
@eric-burel now that I have been using reactive state I am considering ditching immutability-helper
for updating the state object and instead use a simple Object.assign() like React's setState()
does. I could accept a stateChange object or a function that returns a stateChange object. Any thoughts?
@ErikDakoda what does it change in terms of code for the end usage ? Whatever you feel the most intuitive when coding is fine with me, and ditching a dependency is always good
I will be replacing this PR with an updated one.
reactive-state.js