Bundleware, Toolbar Script Reference

Last site update 30th October 2026

context.onCleanup

ContextAPI 2
Signaturecontext.onCleanup(dispose: () => void): Dispose
Take it fromconst { onCleanup } = useToolbar();

Parameters

ParameterTypeDescription
dispose() => void

Return Value

TypeDispose

Availability

Applicable versionsAPI 1 and higher
Bundleware0.3.0, build 2026.10.30