mirror of
https://github.com/seerr-team/seerr.git
synced 2026-06-15 20:09:33 -04:00
fix(quick-connect): add initial valaues to useRef for React 19 compatibility
This commit is contained in:
@@ -27,7 +27,7 @@ export const useQuickConnect = ({
|
||||
const [isExpired, setIsExpired] = useState(false);
|
||||
const [errorMessage, setErrorMessage] = useState<string | null>(null);
|
||||
|
||||
const pollingInterval = useRef<NodeJS.Timeout>();
|
||||
const pollingInterval = useRef<NodeJS.Timeout | undefined>(undefined);
|
||||
const isMounted = useRef(true);
|
||||
const hasInitiated = useRef(false);
|
||||
const errorCount = useRef(0);
|
||||
|
||||
Reference in New Issue
Block a user