MCPcopy Create free account
hub / github.com/microsoft/SandDance / mountWorkInProgressHook

Function mountWorkInProgressHook

docs/external/js/react-dom.development.js:15058–15076  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15056 }
15057
15058 function mountWorkInProgressHook() {
15059 var hook = {
15060 memoizedState: null,
15061 baseState: null,
15062 baseQueue: null,
15063 queue: null,
15064 next: null
15065 };
15066
15067 if (workInProgressHook === null) {
15068 // This is the first hook in the list
15069 currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
15070 } else {
15071 // Append to the end of the list
15072 workInProgressHook = workInProgressHook.next = hook;
15073 }
15074
15075 return workInProgressHook;
15076 }
15077
15078 function updateWorkInProgressHook() {
15079 // This function is used both for updates and for re-renders triggered by a

Callers 6

mountReducerFunction · 0.85
mountStateFunction · 0.85
mountRefFunction · 0.85
mountEffectImplFunction · 0.85
mountCallbackFunction · 0.85
mountMemoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected