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

Function adoptClassInstance

code/styling/public/app.js:8358–8366  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8356 }
8357
8358 function adoptClassInstance(workInProgress, instance) {
8359 instance.updater = updater;
8360 workInProgress.stateNode = instance;
8361 // The instance needs access to the fiber so that it can schedule updates
8362 set(instance, workInProgress);
8363 {
8364 instance._reactInternalInstance = fakeInternalInstance;
8365 }
8366 }
8367
8368 function constructClassInstance(workInProgress, props) {
8369 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected