getStoreSelection
getStoreSelection():
OnSelectionChangeParams
Snapshot of the currently-selected nodes + edges, in xyflow’s
OnSelectionChangeParams shape. Useful from outside React when you
need to act on selection — e.g. on toolbar-button click to reach for
the selected items.
Returns
Section titled “Returns”OnSelectionChangeParams