Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up Event listener when unmounting #1178

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rleir
Copy link
Contributor

@rleir rleir commented Jun 25, 2020

Description of proposed changes

What is the goal of this pull request? What does this pull request change?
we need to tidy up when unmounting

Related issue(s)

Fixes #
Related to # 1115

Testing

What steps should be taken to test the changes you've proposed?
monitor.js responds to browser window resizing? So a hasty test would be to resize the window and check that every displayed element still works. Also, watch the memory usage and browser console.
I also ran the code through Deepscan. It was previously flagging an error here, but no longer.

If you added or changed behavior in the codebase, did you update the tests, or do you need help with this?
Yes, I would like help with tests!
Please review the code, I am new to lodash throttle cancel. @dos077 @jameshadfield
If you are not confident in this code then we need to shelve it until we understand it better.

Thank you for contributing to Nextstrain!

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.

1 participant