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

Function restoreStateIfNeeded

code/dependency-injection/public/app.js:3651–3666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3649}
3650
3651function restoreStateIfNeeded() {
3652 if (!restoreTarget) {
3653 return;
3654 }
3655 var target = restoreTarget;
3656 var queuedTargets = restoreQueue;
3657 restoreTarget = null;
3658 restoreQueue = null;
3659
3660 restoreStateOfTarget(target);
3661 if (queuedTargets) {
3662 for (var i = 0; i < queuedTargets.length; i++) {
3663 restoreStateOfTarget(queuedTargets[i]);
3664 }
3665 }
3666}
3667
3668var ReactControlledComponent = Object.freeze({
3669 injection: injection$2,

Callers 1

batchedUpdatesFunction · 0.70

Calls 1

restoreStateOfTargetFunction · 0.70

Tested by

no test coverage detected