MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / adoptClassInstance

Function adoptClassInstance

code/redux/public/app.js:8609–8617  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8607 }
8608
8609 function adoptClassInstance(workInProgress, instance) {
8610 instance.updater = updater;
8611 workInProgress.stateNode = instance;
8612 // The instance needs access to the fiber so that it can schedule updates
8613 set(instance, workInProgress);
8614 {
8615 instance._reactInternalInstance = fakeInternalInstance;
8616 }
8617 }
8618
8619 function constructClassInstance(workInProgress, props) {
8620 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected