FluentUI Compat

Home > @cascadiacollections/fluentui-compat > EventGroup > dispose

EventGroup.dispose() method

Disposes of the EventGroup instance and removes all registered event listeners.

This method should be called when the EventGroup is no longer needed to prevent memory leaks. It will remove all event listeners and clear internal tracking. After disposal, the instance cannot be reused.

Signature:

dispose(): void;

Returns:

void

  • Edit this page
In this article
Back to top FluentUI React complimentary components and utilities focused on render performance