I’m either running into some odd behavior with the useOnSelectionChange hook or I don’t understand how it works. Based on the documentation, I’m expecting this hook to fire whenever a node or edge is selected in a flow.
To test, I implemented the example from the documentation using default nodes/edges and selecting between them. I’m never seeing the edges register as selected even though they are “visually” selected.
I was getting this same behavior on my custom nodes and edges where node selection was working as expected, but edge selection seems to never register. I can recreate the source code if required, but I’m thinking I may not understand how this hook actually works.