|
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!
bottomline/proof-of-concepts/features/stories/combobox/hooks/combobox/utils.ts
Line 173 in c7fab08
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!