A React hook that retrieves the dashboard organization ID that is currently selected in the Sanity Dashboard.
Works in both Dashboard runtimes: it reads the organizations.current message bus topic when a
host has installed the bus, and falls back to the Comlink connection otherwise.
Returns string|undefined
The dashboard organization ID (string | undefined)
A React hook that retrieves the dashboard organization ID that is currently selected in the Sanity Dashboard.
Works in both Dashboard runtimes: it reads the
organizations.currentmessage bus topic when a host has installed the bus, and falls back to the Comlink connection otherwise.