mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Remove unused export
Meant to do this in e4b21be but neglected to `git add` the changes.
This commit is contained in:
@@ -306,7 +306,6 @@ export function updateContainer(
|
||||
}
|
||||
|
||||
export {
|
||||
flushRoot,
|
||||
batchedEventUpdates,
|
||||
batchedUpdates,
|
||||
unbatchedUpdates,
|
||||
|
||||
+3
-22
@@ -367,20 +367,6 @@ export function computeExpirationForFiber(
|
||||
return expirationTime;
|
||||
}
|
||||
|
||||
let lastUniqueAsyncExpiration = NoWork;
|
||||
export function computeUniqueAsyncExpiration(): ExpirationTime {
|
||||
const currentTime = requestCurrentTime();
|
||||
let result = computeAsyncExpiration(currentTime);
|
||||
if (result <= lastUniqueAsyncExpiration) {
|
||||
// Since we assume the current time monotonically increases, we only hit
|
||||
// this branch when computeUniqueAsyncExpiration is fired multiple times
|
||||
// within a 200ms window (or whatever the async bucket size is).
|
||||
result -= 1;
|
||||
}
|
||||
lastUniqueAsyncExpiration = result;
|
||||
return result;
|
||||
}
|
||||
|
||||
export function scheduleUpdateOnFiber(
|
||||
fiber: Fiber,
|
||||
expirationTime: ExpirationTime,
|
||||
@@ -1080,16 +1066,11 @@ function finishSyncRender(root, exitStatus, expirationTime) {
|
||||
}
|
||||
|
||||
export function flushRoot(root: FiberRoot, expirationTime: ExpirationTime) {
|
||||
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
||||
invariant(
|
||||
false,
|
||||
'work.commit(): Cannot commit while already rendering. This likely ' +
|
||||
'means you attempted to commit from inside a lifecycle method.',
|
||||
);
|
||||
}
|
||||
markRootExpiredAtTime(root, expirationTime);
|
||||
ensureRootIsScheduled(root);
|
||||
flushSyncCallbackQueue();
|
||||
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
|
||||
flushSyncCallbackQueue();
|
||||
}
|
||||
}
|
||||
|
||||
export function flushDiscreteUpdates() {
|
||||
|
||||
Reference in New Issue
Block a user