Unmount the document's view and dispose its guest MCP App runtime.
React unmounts first so hook cleanup (e.g. useViewTool removal) can
run while the App connection still exists; then the runtime closes the App
and transport. After this resolves, the view bootstrap can create a fresh
runtime.
Unmount the document's view and dispose its guest MCP App runtime.
React unmounts first so hook cleanup (e.g. useViewTool removal) can run while the App connection still exists; then the runtime closes the App and transport. After this resolves, the view bootstrap can create a fresh runtime.
No-ops when nothing is mounted.