Skip to content

Use RAF Scheduler#470

Merged
billy-addepar merged 2 commits intomasterfrom
billy/replace-raf
Jan 3, 2018
Merged

Use RAF Scheduler#470
billy-addepar merged 2 commits intomasterfrom
billy/replace-raf

Conversation

@billy-addepar
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@Addepar/ice

@cyril-sf
Copy link
Copy Markdown
Contributor

Can we test that behavior?

@billy-addepar
Copy link
Copy Markdown
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