react-on-rails 16.2.1 → 16.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/pageLifecycle.js +1 -0
- package/package.json +1 -1
package/lib/pageLifecycle.js
CHANGED
|
@@ -59,6 +59,7 @@ function initializePageEventListeners() {
|
|
|
59
59
|
// ReactOnRails.register({ Component });
|
|
60
60
|
// ReactOnRailsPro is resellient against that type of race conditions, but it won't wait for that state anyway
|
|
61
61
|
// As it immediately hydrates the components at the page as soon as its html and bundle is loaded on the browser
|
|
62
|
+
// See pageLifecycle.test.js for unit tests validating this logic
|
|
62
63
|
if (document.readyState === 'complete') {
|
|
63
64
|
setupPageNavigationListeners();
|
|
64
65
|
}
|