sp component base.basecomponent.dispose - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-component-base > BaseComponent > dispose
Disposes the component.
Signature:
dispose(): void;Returns:
void
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.