@samitouri / QOS-React / commits / 26e87b5f15

Fix Flow issue from land race (#34293)

A Flow upgrade removed the bundled library definitinos for SynthaticEvent and we probably want to use our internal definitions. Those are not properly typed at this point yet, but we can look into that as a followup.

Jan Kassens committed Aug 25, 2025 at 12:58 UTC 26e87b5f15d80fd4aaf9909f90de0857e54c1129
1 file changed +6 -2
packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js
+6 -2
@@ -24,6 +24,10 @@ import {TreeDispatcherContext} from '../Components/TreeContext';
24 import {useHighlightHostInstance} from '../hooks';
25 import {SuspenseTreeStateContext} from './SuspenseTreeContext';
26 import styles from './SuspenseTimeline.css';
27 +import typeof {
28 + SyntheticEvent,
29 + SyntheticPointerEvent,
30 +} from 'react-dom-bindings/src/events/SyntheticEvent';
31
32 // TODO: This returns the roots which would mean we attempt to suspend the shell.
33 // Suspending the shell is currently not supported and we don't have a good view
@@ -126,7 +130,7 @@ export default function SuspenseTimeline(): React$Node {
130 });
131 }, [timeline, value]);
132
129 - function handleChange(event: SyntheticEvent<HTMLInputElement>) {
133 + function handleChange(event: SyntheticEvent) {
134 const pendingValue = +event.currentTarget.value;
135 for (let i = 0; i < timeline.length; i++) {
136 const forceFallback = i > pendingValue;
@@ -164,7 +168,7 @@ export default function SuspenseTimeline(): React$Node {
168 highlightHostInstance(suspense.id);
169 }
170
167 - function handlePointerMove(event: SyntheticPointerEvent<HTMLInputElement>) {
171 + function handlePointerMove(event: SyntheticPointerEvent) {
172 const bbox = inputBBox.current;
173 if (bbox === null) {
174 throw new Error('Bounding box of slider is unknown.');