MCPcopy Index your code
hub / github.com/caseywebdev/react-list / waitForCommitToBeReady

Function waitForCommitToBeReady

docs/index.js:17727–17751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17725 }
17726}
17727function waitForCommitToBeReady() {
17728 if (null === suspendedState) throw Error(formatProdErrorMessage(475));
17729 var state = suspendedState;
17730 state.stylesheets &&
17731 0 === state.count &&
17732 insertSuspendedStylesheets(state, state.stylesheets);
17733 return 0 < state.count
17734 ? function (commit) {
17735 var stylesheetTimer = setTimeout(function () {
17736 state.stylesheets &&
17737 insertSuspendedStylesheets(state, state.stylesheets);
17738 if (state.unsuspend) {
17739 var unsuspend = state.unsuspend;
17740 state.unsuspend = null;
17741 unsuspend();
17742 }
17743 }, 6e4);
17744 state.unsuspend = commit;
17745 return function () {
17746 state.unsuspend = null;
17747 clearTimeout(stylesheetTimer);
17748 };
17749 }
17750 : null;
17751}
17752function onUnsuspend() {
17753 this.count--;
17754 if (0 === this.count)

Callers 1

commitRootWhenReadyFunction · 0.85

Calls 2

formatProdErrorMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…