Skip to content

Prevent memory leak from selected account copy tooltip#9705

Merged
darkwing merged 1 commit intoMetaMask:developfrom
darkwing:avoid-selected-account-memory-leak
Oct 26, 2020
Merged

Prevent memory leak from selected account copy tooltip#9705
darkwing merged 1 commit intoMetaMask:developfrom
darkwing:avoid-selected-account-memory-leak

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

Explanation:

I noticed that after clicking the account button to copy the address, and quickly clicking the "send button", I saw a warning about setting state on an unmounted component and leading to memory leak. This prevents said warning.

Manual testing steps:

  • Open Firefox
  • Click the "Account 1" button at the top of the home screen to copy the wallet address
  • Quickly navigate away (i.e. the "Send" button)
  • No warning.

@darkwing darkwing requested a review from a team as a code owner October 23, 2020 20:42
@darkwing darkwing requested a review from danfinlay October 23, 2020 20:42
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweeeet. great find and fix.

@darkwing darkwing merged commit f15b494 into MetaMask:develop Oct 26, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants