SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    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