|
props[stateChangeCallback]({ changes: newState }); |
Observed: onStateChange handlers receive the entire object
Expected: we should only pass the smallest piece of state - the state that changed
Solution: Change object. We also haven't written tests! We need to to fix this issue!