sp component base.basecomponent.dispose - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-component-base > BaseComponent > dispose

BaseComponent.dispose() method

Disposes the component.

Signature:

dispose(): void;

Returns:

void

Remarks

Third-party code generally does not need to call this method; it's invoked automatically when the lifecycle ends for a web part or extension. To perform custom cleanup when your component is disposed, override the BaseComponent.onDispose() method.

⚠️ **GitHub.com Fallback** ⚠️