Closed PomeloBounties closed 7 months ago
Bounty application submitted by @yevheniiaKhmara with a message:
fasfas
Waiting for your approval @SoA432
Bounty application submitted by @yevheniiaKhmara with a message:
reapplly
Waiting for your approval @SoA432
Bounty application denied for @yevheniiaKhmara with a message:
N/A
Bounty closed by the funder
Bounty
bug(MatButton): MatButton leaking memory when removed from DOM with ngIf created by @SoA432 on Pomelo Bounties
Summary
Hire a developer to solve the bug(MatButton): MatButton leaking memory when removed from DOM with ngIf. Must be able to reproduce the issue, understand the cause and come up with a fix. The developer should have experience working with Angular, CDK/Material, and have knowledge of memory management.
Apply
https://bounties.pomelo.io/aa3c1ed4beba
Original Issue
https://github.com/angular/components/issues/28241
Title
bug(MatButton): MatButton leaking memory when removed from DOM with ngIf
Body
Is this a regression?
The previous version in which this bug was not present was
14.2.7
Description
Garbage collection does not happen when buttons are deleted from DOM using ngIf. The issue does not occur with MatLegacyButtonModule only with the MatButtonModule.
Other components seem to work fine using the same testing methodology.
Reproduction
Steps to reproduce:
Example code:
Expected Behavior
Buttons are garbage collected.
Actual Behavior
Buttons are not garbage collected. At startup: After multiple clicks:
Environment
Base Reward
0.0500 USDT
Note
For technical discussion use the original issue. This issue is for tracking the bounty application and implementation progress.