Skip to content

Commit

Permalink
fix: missing dependency in useVideoTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
hducati committed Nov 29, 2022
1 parent 0213527 commit b0b4956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/useVideoTexture.tsx
Expand Up @@ -35,6 +35,6 @@ export function useVideoTexture(src: string, props: Partial<VideoTextureProps>)
}),
[src]
)
useEffect(() => void (start && texture.image.play()), [texture])
useEffect(() => void (start && texture.image.play()), [texture, start])
return texture
}

0 comments on commit b0b4956

Please sign in to comment.