MCPcopy Index your code
hub / github.com/caseywebdev/react-list / updateWorkInProgressHook

Function updateWorkInProgressHook

docs/index.js:7295–7328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7293 return workInProgressHook;
7294}
7295function updateWorkInProgressHook() {
7296 if (null === currentHook) {
7297 var nextCurrentHook = currentlyRenderingFiber$1.alternate;
7298 nextCurrentHook =
7299 null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;
7300 } else nextCurrentHook = currentHook.next;
7301 var nextWorkInProgressHook =
7302 null === workInProgressHook
7303 ? currentlyRenderingFiber$1.memoizedState
7304 : workInProgressHook.next;
7305 if (null !== nextWorkInProgressHook)
7306 (workInProgressHook = nextWorkInProgressHook),
7307 (currentHook = nextCurrentHook);
7308 else {
7309 if (null === nextCurrentHook) {
7310 if (null === currentlyRenderingFiber$1.alternate)
7311 throw Error(formatProdErrorMessage(467));
7312 throw Error(formatProdErrorMessage(310));
7313 }
7314 currentHook = nextCurrentHook;
7315 nextCurrentHook = {
7316 memoizedState: currentHook.memoizedState,
7317 baseState: currentHook.baseState,
7318 baseQueue: currentHook.baseQueue,
7319 queue: currentHook.queue,
7320 next: null
7321 };
7322 null === workInProgressHook
7323 ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook =
7324 nextCurrentHook)
7325 : (workInProgressHook = workInProgressHook.next = nextCurrentHook);
7326 }
7327 return workInProgressHook;
7328}
7329var createFunctionComponentUpdateQueue;
7330createFunctionComponentUpdateQueue = function () {
7331 return { lastEffect: null, events: null, stores: null, memoCache: null };

Callers 15

updateReducerFunction · 0.85
rerenderReducerFunction · 0.85
updateSyncExternalStoreFunction · 0.85
updateActionStateFunction · 0.85
updateActionStateImplFunction · 0.85
rerenderActionStateFunction · 0.85
updateRefFunction · 0.85
updateEffectImplFunction · 0.85
updateCallbackFunction · 0.85
updateMemoFunction · 0.85
updateIdFunction · 0.85
updateRefreshFunction · 0.85

Calls 1

formatProdErrorMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…