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

Function adoptClassInstance

code/new-context-api/public/app.js:7719–7727  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

7717 }
7718
7719 function adoptClassInstance(workInProgress, instance) {
7720 instance.updater = updater;
7721 workInProgress.stateNode = instance;
7722 // The instance needs access to the fiber so that it can schedule updates
7723 set(instance, workInProgress);
7724 {
7725 instance._reactInternalInstance = fakeInternalInstance;
7726 }
7727 }
7728
7729 function constructClassInstance(workInProgress, props) {
7730 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected