FiberTunnel - v0.6.1
    Preparing search index...

    Function sortByFiberOrder

    • Returns a new array of items sorted by React tree position. Items must share one React root. Items without a mounted fiber come last, in input order.

      Type Parameters

      • T extends { fiber?: object | null }

      Parameters

      • items: readonly T[]

      Returns T[]