react-selectable-fast
react-selectable-fast copied to clipboard
Setting selected values to my own state clears current selected values
Trying to set my own state with the selected values inisde the handleSelectionFinish will update my state but it will also clear the current selection.
setValues({ ...values, day_parting_values: payload });
As soon as I do a mouse up, my own state will be modified but I won't be able to see what I have selected.