Skip to content

Commit 9840c53

Browse files
committed
chore: Fix ref type for React 19
1 parent 85f90ac commit 9840c53

File tree

1 file changed

+1
-1
lines changed
  • packages/docs/src/app/playground/_demos/throttling

1 file changed

+1
-1
lines changed

packages/docs/src/app/playground/_demos/throttling/client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function Client() {
3131
)
3232
const router = useRouter()
3333

34-
const timeoutRef = React.useRef<number>()
34+
const timeoutRef = React.useRef<number | undefined>(undefined)
3535
const [index, setIndex] = React.useState(0)
3636

3737
React.useEffect(() => {

0 commit comments

Comments
 (0)