MCPcopy Create free account
hub / github.com/caseywebdev/react-list / renderWithHooksAgain

Function renderWithHooksAgain

docs/index.js:7219–7240  ·  view source on GitHub ↗
(workInProgress, Component, props, secondArg)

Source from the content-addressed store, hash-verified

7217 (didReceiveUpdate = !0));
7218}
7219function renderWithHooksAgain(workInProgress, Component, props, secondArg) {
7220 currentlyRenderingFiber$1 = workInProgress;
7221 var numberOfReRenders = 0;
7222 do {
7223 didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);
7224 thenableIndexCounter = 0;
7225 didScheduleRenderPhaseUpdateDuringThisPass = !1;
7226 if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
7227 numberOfReRenders += 1;
7228 workInProgressHook = currentHook = null;
7229 if (null != workInProgress.updateQueue) {
7230 var children = workInProgress.updateQueue;
7231 children.lastEffect = null;
7232 children.events = null;
7233 children.stores = null;
7234 null != children.memoCache && (children.memoCache.index = 0);
7235 }
7236 ReactSharedInternals.H = HooksDispatcherOnRerender;
7237 children = Component(props, secondArg);
7238 } while (didScheduleRenderPhaseUpdateDuringThisPass);
7239 return children;
7240}
7241function TransitionAwareHostComponent() {
7242 var dispatcher = ReactSharedInternals.H,
7243 maybeThenable = dispatcher.useState()[0];

Callers 2

renderWithHooksFunction · 0.85
replayFunctionComponentFunction · 0.85

Calls 2

formatProdErrorMessageFunction · 0.85
ComponentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…