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

Function adoptClassInstance

code/dependency-injection/public/app.js:8451–8459  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8449 }
8450
8451 function adoptClassInstance(workInProgress, instance) {
8452 instance.updater = updater;
8453 workInProgress.stateNode = instance;
8454 // The instance needs access to the fiber so that it can schedule updates
8455 set(instance, workInProgress);
8456 {
8457 instance._reactInternalInstance = fakeInternalInstance;
8458 }
8459 }
8460
8461 function constructClassInstance(workInProgress, props) {
8462 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected