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: setTimeout #114

Merged
merged 1 commit into from
Oct 30, 2020
Merged

fix: setTimeout #114

merged 1 commit into from
Oct 30, 2020

Conversation

icirellik
Copy link
Contributor

This change is very minor: setTimeout(..., 0) and setImmediate() are
nearly identical in timing. However setImmediate is not a browser-safe
function and must be manually polyfilled with Webpack 5. There is no
need for this polyfill as setTimeout(..., 0) works for our usage here.

This change is very minor: `setTimeout(..., 0)` and `setImmediate()` are
nearly identical timing. However `setImmediate` is not a browser safe
function and must be manually polyfilled with Webpack 5. There is no
need for this polyfill and `setTimeout(..., 0)` works for or usage here.
@icirellik
Copy link
Contributor Author

icirellik commented Oct 30, 2020

Required for artsy/force#6496

@damassi
Copy link
Member

damassi commented Oct 30, 2020

Thats crazy about setImmediate! Very good to know.

@damassi damassi merged commit 8999546 into master Oct 30, 2020
@damassi damassi deleted the fix-prefer-settimeout branch October 30, 2020 20:24
@artsyit
Copy link
Contributor

artsyit commented Oct 30, 2020

🚀 PR was released in v6.2.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants