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

Function adoptClassInstance

code/event-handlers/public/app.js:7688–7696  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

7686 }
7687
7688 function adoptClassInstance(workInProgress, instance) {
7689 instance.updater = updater;
7690 workInProgress.stateNode = instance;
7691 // The instance needs access to the fiber so that it can schedule updates
7692 set(instance, workInProgress);
7693 {
7694 instance._reactInternalInstance = fakeInternalInstance;
7695 }
7696 }
7697
7698 function constructClassInstance(workInProgress, props) {
7699 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected