We use this hook to update the selected nodes list and to push nodes JSON to the python side.
The latter is problematic, because the callback is called on every move a user makes while dragging a node, and dumping the json this often is performance relevant and makes workflows with more than ~10-ish nodes feel sluggish.