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 — [Fiber] Use real event priority for hydration scheduling (#28765) · react/react@1f8327f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-dom-bindings/src/events
    • ReactDOMEventReplaying.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js‎

Copy file name to clipboardExpand all lines: packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {isHigherEventPriority} from 'react-reconciler/src/ReactEventPriorities';
3838
import {isRootDehydrated} from 'react-reconciler/src/ReactFiberShellHydration';
3939
import {dispatchReplayedFormAction} from './plugins/FormActionEventPlugin';
4040
import {
41-
getCurrentUpdatePriority,
41+
resolveUpdatePriority,
4242
runWithPriority as attemptHydrationAtPriority,
4343
} from '../client/ReactDOMUpdatePriority';
4444

@@ -333,10 +333,7 @@ function attemptExplicitHydrationTarget(
333333
}
334334

335335
export function queueExplicitHydrationTarget(target: Node): void {
336-
// TODO: This will read the priority if it's dispatched by the React
337-
// event system but not native events. Should read window.event.type, like
338-
// we do for updates (getCurrentEventPriority).
339-
const updatePriority = getCurrentUpdatePriority();
336+
const updatePriority = resolveUpdatePriority();
340337
const queuedTarget: QueuedHydrationTarget = {
341338
blockedOn: null,
342339
target: target,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.