Skip to content

Remove event listeners before component unmounts#1982

Closed
Arooba-git wants to merge 1 commit into
ToucanToco:masterfrom
Arooba-git:fix-memory-leak
Closed

Remove event listeners before component unmounts#1982
Arooba-git wants to merge 1 commit into
ToucanToco:masterfrom
Arooba-git:fix-memory-leak

Conversation

@Arooba-git

Copy link
Copy Markdown

Hi! 👋
The event listeners added in ResizablePanels and StepForm are never removed once added. Even after the component unmounts, the event handlers remain bound to the events. This would lead to an accumulation of such listeners each time a component is mounted, leading to a memory leak. This PR fixes this issue:)

The event listeners added in ResizablePanels and StepForm are never removed once added. Even after the component unmounts, the event handlers remain bound to the events. This would lead to accumulation of such listeners each time component is mounted, leading to memory leak.
@davinov

davinov commented Sep 9, 2024

Copy link
Copy Markdown
Member

Closing as we're gonna rewrite the UI part at some point

@davinov davinov closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants