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

fix: cancel all animation frames on unmount #4290

Merged
merged 4 commits into from
Aug 27, 2020
Merged

Conversation

adidahiya
Copy link
Contributor

fixes #4263

Changes proposed in this pull request:

Treat requestAnimationFrame similar to setTimeout by proxying all calls through AbstractPureComponent2, which keeps track of all requested frames and cancels them in componentWillUnmount. This affects various components in core, datetime, and select packages.

@blueprint-bot
Copy link

use abstract components in select package

Previews: documentation | landing | table

@blueprint-bot
Copy link

Remove bad super.componentWillUnmount calls

Previews: documentation | landing | table

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.

DatePickerCaption -- Can't perform a React state update on an unmounted component.
2 participants