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

Function adoptClassInstance

code/communication/public/app.js:8393–8401  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8391 }
8392
8393 function adoptClassInstance(workInProgress, instance) {
8394 instance.updater = updater;
8395 workInProgress.stateNode = instance;
8396 // The instance needs access to the fiber so that it can schedule updates
8397 set(instance, workInProgress);
8398 {
8399 instance._reactInternalInstance = fakeInternalInstance;
8400 }
8401 }
8402
8403 function constructClassInstance(workInProgress, props) {
8404 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected