SheetXL - v1.0.2
    Preparing search index...

    Function attachWhenReady

    • Attach ref.current once it exists — the element may be null for a frame (the provider mounts above the element it names), so retry on the next frame until it lands or the effect is torn down.

      Parameters

      • ref: { current: Element | null }
      • attach: (el: Element) => RemoveListener

      Returns RemoveListener