-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
withSafeTimeout: Unguarded window
reference breaks SSR
#9265
Comments
I thought we could reference those directly but maybe I'm wrong? They're not language functions though, right? They're part of |
Uh, not sure I'm getting you right. Yeah, so I think they are part of |
Ah, I just wasn't sure how pure we were being about those globals; elsewhere I see "globals" being taken off |
These are globals and we shouldn't be referencing them off the I'm recalling some previous discussion with @iseulde on this, so... cc 😄 |
Previously: #2271 (comment) |
Describe the bug
See title, and Automattic/wp-calypso#26838 (comment). Trying to boot that Calypso branch (which uses
@wp/compose
results inTo Reproduce
Steps to reproduce the behavior:
npm start
Expected behavior
Calypso booting
Additional context
Can we simply drop this line? Since
setTimeout
andclearTimeout
are methods of thewindow
object, they should be globally available -- as they are in Node.The text was updated successfully, but these errors were encountered: