@posit-dev/shinyreact
    Preparing search index...

    Function useShinyOutputStatus

    • Hook to subscribe to the lifecycle status of a Shiny output.

      One of:

      • "pending" — server has not yet sent a value (initial mount).
      • "ready" — server has sent a value and is not currently recalculating.
      • "recalculating" — server is recomputing this output. The value held by any sibling useShinyOutputValue is the previously delivered result.
      • "error" — the server-side render raised an error.

      Use this when you need to drive skeleton / spinner / error UI. For just the value, use useShinyOutputValue.

      Parameters

      • outputId: string

        The ID of the Shiny output to subscribe to.

      • options: { namespace?: string | null } = {}

        Optional configuration object.

        • Optionalnamespace?: string | null

          Module namespace to apply (or null to suppress the surrounding ShinyModuleProvider namespace).

      Returns OutputStatus

      The current output status.