@dxos/react-ui-list
    Preparing search index...

    Function isTreeDataFor

    • Whether the payload is a tree item belonging to treeId.

      pragmatic-dnd monitors are global, so every mounted tree sees every other tree's drags. Matching on shape alone is not enough — the payloads are identical — and a monitor that claims a foreign drag goes on to read its item as its own node type.

      Parameters

      • data: unknown
      • treeId: string

      Returns data is { id: string; item: any; path: readonly string[]; treeId: string }