Skip to content

Commit d985146

Browse files
committed
Add missing GestureLane case to getLabelForLane
GestureLane was added in #34546 but getLabelForLane was not updated. The comment on line 38 states lane values should be kept in sync with getLabelForLane, used by react-devtools-timeline. Without this case, getLaneLabelMap returns undefined for GestureLane which gets cast to the string "undefined" in the DevTools timeline.
1 parent 1b45e24 commit d985146

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/react-reconciler/src/ReactFiberLane.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ export function getLabelForLane(lane: Lane): string | void {
144144
if (lane & DefaultLane) {
145145
return 'Default';
146146
}
147+
if (lane & GestureLane) {
148+
return 'Gesture';
149+
}
147150
if (lane & TransitionHydrationLane) {
148151
return 'TransitionHydration';
149152
}

0 commit comments

Comments
 (0)