Initially returns null, until <VisualEditing /> is rendered on the page.
Returns false if there's no parent window context with Presentation Tool connected over comlink.
Returns true when a connection is established over comlink and window.postMessage, the handshake might take a while and the hook may return false initially before it eventually returns true.
Initially returns
null, until<VisualEditing />is rendered on the page. Returnsfalseif there's no parent window context with Presentation Tool connected over comlink. Returnstruewhen a connection is established over comlink and window.postMessage, the handshake might take a while and the hook may returnfalseinitially before it eventually returnstrue.