chore: upgrade to react@19 (#9182)

This commit is contained in:
David Luzar
2025-02-25 19:18:42 +01:00
committed by GitHub
parent 9ee0b8ffcb
commit 31e8476c78
58 changed files with 2774 additions and 2828 deletions

View File

@@ -2,7 +2,7 @@ import { useEffect } from "react";
import { EVENT } from "../constants";
export function useOutsideClick<T extends HTMLElement>(
ref: React.RefObject<T>,
ref: React.RefObject<T | null>,
/** if performance is of concern, memoize the callback */
callback: (event: Event) => void,
/**

View File

@@ -5,7 +5,7 @@ import throttle from "lodash.throttle";
const scrollPositionAtom = atom<number>(0);
export const useScrollPosition = <T extends HTMLElement>(
elementRef: React.RefObject<T>,
elementRef: React.RefObject<T | null>,
) => {
const [scrollPosition, setScrollPosition] = useAtom(scrollPositionAtom);