Skip to content

Function: cleanupAll()

ts
function cleanupAll(): void;

Defined in: src/renderer/render.ts:909

Clean up all active render sessions across all pages.

Call this when the skill finishes or is aborted to unmount all UIs, tear down bridge sessions, and release stores. Works regardless of browser state (navigation, refresh, blank page).

Only affects sessions created by the default render function. Sessions from custom createRender instances have their own cleanupAll.

Returns

void

Matterway Assistant SDK Documentation