MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / restoreStateIfNeeded

Function restoreStateIfNeeded

code/communication/public/app.js:3593–3608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3591}
3592
3593function restoreStateIfNeeded() {
3594 if (!restoreTarget) {
3595 return;
3596 }
3597 var target = restoreTarget;
3598 var queuedTargets = restoreQueue;
3599 restoreTarget = null;
3600 restoreQueue = null;
3601
3602 restoreStateOfTarget(target);
3603 if (queuedTargets) {
3604 for (var i = 0; i < queuedTargets.length; i++) {
3605 restoreStateOfTarget(queuedTargets[i]);
3606 }
3607 }
3608}
3609
3610var ReactControlledComponent = Object.freeze({
3611 injection: injection$2,

Callers 1

batchedUpdatesFunction · 0.70

Calls 1

restoreStateOfTargetFunction · 0.70

Tested by

no test coverage detected