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

Use RAF Scheduler #470

Merged
merged 2 commits into from
Jan 3, 2018
Merged

Use RAF Scheduler #470

merged 2 commits into from
Jan 3, 2018

Conversation

billy-addepar
Copy link
Contributor

Replace calling RAF with using RAF scheduler so that it could be canceled when component is destroyed.

This also adds destroy state of component inside ResizeSensor callback. Under the hood, it is using RAF but since we cannot replace it, we will add destroy state checking before executing the callback.

@billy-addepar
Copy link
Contributor Author

@Addepar/ice

@cyril-sf
Copy link
Contributor

Can we test that behavior?

@billy-addepar
Copy link
Contributor Author

Not sure how we can test that. There is no functionality change

@billy-addepar billy-addepar merged commit 0f6041d into master Jan 3, 2018
@cyril-sf cyril-sf deleted the billy/replace-raf branch January 3, 2018 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants