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

Function restoreStateIfNeeded

code/new-context-api/public/app.js:2919–2934  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2917}
2918
2919function restoreStateIfNeeded() {
2920 if (!restoreTarget) {
2921 return;
2922 }
2923 var target = restoreTarget;
2924 var queuedTargets = restoreQueue;
2925 restoreTarget = null;
2926 restoreQueue = null;
2927
2928 restoreStateOfTarget(target);
2929 if (queuedTargets) {
2930 for (var i = 0; i < queuedTargets.length; i++) {
2931 restoreStateOfTarget(queuedTargets[i]);
2932 }
2933 }
2934}
2935
2936var ReactControlledComponent = Object.freeze({
2937 injection: injection$2,

Callers 1

batchedUpdatesFunction · 0.70

Calls 1

restoreStateOfTargetFunction · 0.70

Tested by

no test coverage detected