File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/react-dom-bindings/src/events Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import {isHigherEventPriority} from 'react-reconciler/src/ReactEventPriorities';
38
38
import { isRootDehydrated } from 'react-reconciler/src/ReactFiberShellHydration' ;
39
39
import { dispatchReplayedFormAction } from './plugins/FormActionEventPlugin' ;
40
40
import {
41
- peekCurrentUpdatePriority ,
41
+ resolveUpdatePriority ,
42
42
runWithPriority as attemptHydrationAtPriority ,
43
43
} from '../client/ReactDOMUpdatePriority' ;
44
44
@@ -333,10 +333,7 @@ function attemptExplicitHydrationTarget(
333
333
}
334
334
335
335
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 = peekCurrentUpdatePriority ( ) ;
336
+ const updatePriority = resolveUpdatePriority ( ) ;
340
337
const queuedTarget : QueuedHydrationTarget = {
341
338
blockedOn : null ,
342
339
target : target ,
You can’t perform that action at this time.
0 commit comments