MCPcopy Index your code
hub / github.com/react/react / restorePendingUpdaters

Function restorePendingUpdaters

packages/react-reconciler/src/ReactFiberWorkLoop.js:5221–5234  ·  view source on GitHub ↗
(root: FiberRoot, lanes: Lanes)

Source from the content-addressed store, hash-verified

5219}
5220
5221export function restorePendingUpdaters(root: FiberRoot, lanes: Lanes): void {
5222 if (enableUpdaterTracking) {
5223 if (isDevToolsPresent) {
5224 const memoizedUpdaters = root.memoizedUpdaters;
5225 memoizedUpdaters.forEach(schedulingFiber => {
5226 addFiberToLanesMap(root, schedulingFiber, lanes);
5227 });
5228
5229 // This function intentionally does not clear memoized updaters.
5230 // Those may still be relevant to the current commit
5231 // and a future one (e.g. Suspense).
5232 }
5233 }
5234}
5235
5236const fakeActCallbackNode = {};
5237// $FlowFixMe[missing-local-annot]

Callers 5

throwExceptionFunction · 0.90
renderRootSyncFunction · 0.85
renderRootConcurrentFunction · 0.85
attachPingListenerFunction · 0.85

Calls 2

addFiberToLanesMapFunction · 0.90
forEachMethod · 0.65

Tested by

no test coverage detected