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

Function enqueueStateRestore

code/third-party/public/app.js:2775–2785  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

2773var injection$2 = ReactControlledComponentInjection;
2774
2775function enqueueStateRestore(target) {
2776 if (restoreTarget) {
2777 if (restoreQueue) {
2778 restoreQueue.push(target);
2779 } else {
2780 restoreQueue = [target];
2781 }
2782 } else {
2783 restoreTarget = target;
2784 }
2785}
2786
2787function needsStateRestore() {
2788 return restoreTarget !== null || restoreQueue !== null;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected