GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove unused export · react/react@5a71cbe

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src
    • ReactFiberReconciler.js
    • ReactFiberWorkLoop.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-reconciler/src/ReactFiberReconciler.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberReconciler.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ export function updateContainer(
306306
}
307307

308308
export {
309-
flushRoot,
310309
batchedEventUpdates,
311310
batchedUpdates,
312311
unbatchedUpdates,
Collapse file

‎packages/react-reconciler/src/ReactFiberWorkLoop.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberWorkLoop.js
+3-22Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,6 @@ export function computeExpirationForFiber(
367367
return expirationTime;
368368
}
369369

370-
let lastUniqueAsyncExpiration = NoWork;
371-
export function computeUniqueAsyncExpiration(): ExpirationTime {
372-
const currentTime = requestCurrentTime();
373-
let result = computeAsyncExpiration(currentTime);
374-
if (result <= lastUniqueAsyncExpiration) {
375-
// Since we assume the current time monotonically increases, we only hit
376-
// this branch when computeUniqueAsyncExpiration is fired multiple times
377-
// within a 200ms window (or whatever the async bucket size is).
378-
result -= 1;
379-
}
380-
lastUniqueAsyncExpiration = result;
381-
return result;
382-
}
383-
384370
export function scheduleUpdateOnFiber(
385371
fiber: Fiber,
386372
expirationTime: ExpirationTime,
@@ -1080,16 +1066,11 @@ function finishSyncRender(root, exitStatus, expirationTime) {
10801066
}
10811067

10821068
export function flushRoot(root: FiberRoot, expirationTime: ExpirationTime) {
1083-
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
1084-
invariant(
1085-
false,
1086-
'work.commit(): Cannot commit while already rendering. This likely ' +
1087-
'means you attempted to commit from inside a lifecycle method.',
1088-
);
1089-
}
10901069
markRootExpiredAtTime(root, expirationTime);
10911070
ensureRootIsScheduled(root);
1092-
flushSyncCallbackQueue();
1071+
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
1072+
flushSyncCallbackQueue();
1073+
}
10931074
}
10941075

10951076
export function flushDiscreteUpdates() {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.