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

Function adoptClassInstance

code/composition/public/app.js:8496–8504  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8494 }
8495
8496 function adoptClassInstance(workInProgress, instance) {
8497 instance.updater = updater;
8498 workInProgress.stateNode = instance;
8499 // The instance needs access to the fiber so that it can schedule updates
8500 set(instance, workInProgress);
8501 {
8502 instance._reactInternalInstance = fakeInternalInstance;
8503 }
8504 }
8505
8506 function constructClassInstance(workInProgress, props) {
8507 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected