Skip to content

Commit

Permalink
chore: Fix ref type for React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Dec 7, 2024
1 parent 85f90ac commit 9840c53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Client() {
)
const router = useRouter()

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

React.useEffect(() => {
Expand Down

0 comments on commit 9840c53

Please sign in to comment.