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

Function restoreStateIfNeeded

code/composition/public/app.js:3696–3711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3694}
3695
3696function restoreStateIfNeeded() {
3697 if (!restoreTarget) {
3698 return;
3699 }
3700 var target = restoreTarget;
3701 var queuedTargets = restoreQueue;
3702 restoreTarget = null;
3703 restoreQueue = null;
3704
3705 restoreStateOfTarget(target);
3706 if (queuedTargets) {
3707 for (var i = 0; i < queuedTargets.length; i++) {
3708 restoreStateOfTarget(queuedTargets[i]);
3709 }
3710 }
3711}
3712
3713var ReactControlledComponent = Object.freeze({
3714 injection: injection$2,

Callers 1

batchedUpdatesFunction · 0.70

Calls 1

restoreStateOfTargetFunction · 0.70

Tested by

no test coverage detected