-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix render during interactive readyState (#1151)
- Loading branch information
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46350ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this update my app no longer renders. The document.readyState === 'interactive' but the 'DOMContentLoaded' event has already fired, so reactOnRailsPageLoaded never gets called :( reverting back to 11.1.4. (Testing on Chrome 69.0.3497.100)
46350ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmaloon I just merged #1152
I'm going to push a release now.
46350ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmaloon @justin808 Apologies, that was completely my fault, if a page had enough un-preloaded images or iframes the
window.setTimeout
I left unchanged would sometimes drop invocation into the dead zone betweenDOMContentLoaded
andreadyState === complete
. #1152 underwent better internal testing on a real-world project and should have no issues because state detection isn't deferred, only the actual rendering is.