MCPcopy Create free account
hub / github.com/reactjs/react-rails / adoptClassInstance

Function adoptClassInstance

lib/assets/react-source/development/react.js:16515–16524  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

16513 }
16514
16515 function adoptClassInstance(workInProgress, instance) {
16516 instance.updater = classComponentUpdater;
16517 workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
16518
16519 set(instance, workInProgress);
16520
16521 {
16522 instance._reactInternalInstance = fakeInternalInstance;
16523 }
16524 }
16525
16526 function constructClassInstance(workInProgress, ctor, props) {
16527 var isLegacyContextConsumer = false;

Callers 2

constructClassInstanceFunction · 0.85

Calls 1

setFunction · 0.85

Tested by

no test coverage detected