react-arborist
react-arborist copied to clipboard
Do not call onSelect when selection prop changes.
trafficstars
Otherwise the component cannot really be called controlled.
Whoever uses the component should already know that selection has changed. They caused it! No need to notify them.
The only things that the component should report is what user does to the component, not what outside code does.
Totally agree here.