A React hook that tracks whether the Shiny server is currently busy.
Reads from a shared lifecycle store (see lifecycle-store.ts) so all
consumers on the page share a single pair of shiny:busy / shiny:idle
DOM listeners. Returns false initially, flips to true while a request
is in flight, and back to false when the server goes idle.
Returns boolean
A boolean indicating whether the Shiny server is currently busy.
A React hook that tracks whether the Shiny server is currently busy.
Reads from a shared lifecycle store (see
lifecycle-store.ts) so all consumers on the page share a single pair ofshiny:busy/shiny:idleDOM listeners. Returnsfalseinitially, flips totruewhile a request is in flight, and back tofalsewhen the server goes idle.