Remove unused errorHandler ref
This commit is contained in:
parent
29cf7c97c3
commit
ffb4631854
@ -34,8 +34,6 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
ref,
|
||||
) => {
|
||||
const nativeRef = useRef<HTMLVideoElement>(null);
|
||||
const errorHandler = useRef<typeof onError>(onError);
|
||||
errorHandler.current = onError;
|
||||
|
||||
const seek = useCallback(
|
||||
async (time: number, _tolerance?: number) => {
|
||||
|
Loading…
Reference in New Issue
Block a user