From ffb46318540ed6acca5d7738b1d883d9948eca3b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 10 Jul 2024 16:30:57 +0700 Subject: [PATCH] Remove unused errorHandler ref --- src/Video.web.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 7ade7936..2220623f 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -34,8 +34,6 @@ const Video = forwardRef( ref, ) => { const nativeRef = useRef(null); - const errorHandler = useRef(onError); - errorHandler.current = onError; const seek = useCallback( async (time: number, _tolerance?: number) => {