sp webpart base.basewebpart.ondispose - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-webpart-base > BaseWebPart > onDispose
This API should be used to refresh the contents of the PropertyPane. virtual
Signature:
protected onDispose(): void;Returns:
void
This API is called at the end of the web part lifecycle on a page. It should be used to dispose any local resources (i.e. DOM elements) that the web part is holding onto. This API is expected to be called in scenarios like page navigation i.e. the host is transitioning from one page to another and disposes the page that is being transitioned out.