Closed
Description
React version: N/A; sample app uses 16.13.1
Devtools version: 6cceaeb on FF and Chrome
Steps To Reproduce
Generally speaking:
- Call
setImmediate
in a react app without a polyfill after react devtools have initialized.
To demonstrate in the sample app:
- Open sample app with browser devtools closed.
- Click button and observe that
setImmediate
is not defined initially or after mounting react. - Open browser devtools to allow react devtools extension to initialize.
- Click button and observe that
setImmediate
has been defined.
Link to code example:
I couldn't figure out how to prevent polyfills from being included on CodeSandbox.
js bin editor
repro page
The current behavior
React devtools globally defines a polyfill for setImmediate
, masking the problem.
The expected behavior
Usage of setImmediate
without a polyfill in an app will throw an error.