Remove unused errorHandler ref

This commit is contained in:
Zoe Roux 2024-07-10 16:30:57 +07:00
parent 29cf7c97c3
commit ffb4631854
No known key found for this signature in database

View File

@ -34,8 +34,6 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
ref, ref,
) => { ) => {
const nativeRef = useRef<HTMLVideoElement>(null); const nativeRef = useRef<HTMLVideoElement>(null);
const errorHandler = useRef<typeof onError>(onError);
errorHandler.current = onError;
const seek = useCallback( const seek = useCallback(
async (time: number, _tolerance?: number) => { async (time: number, _tolerance?: number) => {