A React hook that tracks whether Shiny has been initialized.
Reads from a shared lifecycle store (see lifecycle-store.ts) so all
consumers on the page share a single subscription to window.Shiny's
initializedPromise / the "shiny:connected" DOM event, rather than each
mounting its own listener.
Returns boolean
A boolean indicating whether Shiny has been initialized.
A React hook that tracks whether Shiny has been initialized.
Reads from a shared lifecycle store (see
lifecycle-store.ts) so all consumers on the page share a single subscription towindow.Shiny'sinitializedPromise/ the"shiny:connected"DOM event, rather than each mounting its own listener.