ReactControl.destroy
This method is invoked when the component is to be removed from the DOM tree. Use it for the cleanup and to release any memory that the component is using.
Available for
Model-driven and canvas apps
Syntax
destroy()
Example
public destroy(): void
{
this.button.removeEventListener("click", this.onButtonClick);
}
Related articles
React controls & platform libraries (Preview)
ReactControl
Power Apps component framework API reference
Power Apps component framework overview
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру