From b0b4956650892f951d7ae0770d052690f3905c60 Mon Sep 17 00:00:00 2001 From: Henrique Ducati Date: Tue, 29 Nov 2022 19:51:16 -0300 Subject: [PATCH] fix: missing dependency in useVideoTexture --- src/core/useVideoTexture.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/useVideoTexture.tsx b/src/core/useVideoTexture.tsx index ebbfa4344..3f3a65a7d 100644 --- a/src/core/useVideoTexture.tsx +++ b/src/core/useVideoTexture.tsx @@ -35,6 +35,6 @@ export function useVideoTexture(src: string, props: Partial) }), [src] ) - useEffect(() => void (start && texture.image.play()), [texture]) + useEffect(() => void (start && texture.image.play()), [texture, start]) return texture }