We mix the use of window.setTimeout with setTimeout in the codebase (as well as with a bunch of other globals). I think that for the most common globals, it's not needed. I can see us banning the use of the window. version with an eslint rule. We will save a bit of network space, smaller bundle size.
Summary
We mix the use of
window.setTimeout
withsetTimeout
in the codebase (as well as with a bunch of other globals). I think that for the most common globals, it's not needed. I can see us banning the use of thewindow.
version with an eslint rule. We will save a bit of network space, smaller bundle size.Examples
https://github.com/search?q=org%3Amui+window.setTimeout&type=code vs. https://github.com/search?q=org%3Amui+setTimeout&type=code.
Motivation
No response
Search keywords: -