react-postprocessing
react-postprocessing copied to clipboard
perf(Select): fix update loop
See #236 for additional details
Would be great to hear your feedback on this. This code
const changed = (current.length !== api.selected.length) ? true : !current.every(o => api.selected.includes(o))
is only correct if there are no duplicates in any of the two arrays (otherwise, they would have to be de-duped first) - but I believe that is the case here.