MCPcopy Create free account
hub / github.com/react/react / isHigherEventPriority

Function isHigherEventPriority

packages/react-reconciler/src/ReactEventPriorities.js:44–49  ·  view source on GitHub ↗
(
  a: EventPriority,
  b: EventPriority,
)

Source from the content-addressed store, hash-verified

42}
43
44export function isHigherEventPriority(
45 a: EventPriority,
46 b: EventPriority,
47): boolean {
48 return a !== 0 && a < b;
49}
50
51export function eventPriorityToLane(updatePriority: EventPriority): Lane {
52 return updatePriority;

Callers 2

lanesToEventPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected