Skip to content

Commit

Permalink
fix: missing dependency in useVideoTexture (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
hducati committed Dec 4, 2022
1 parent 5155076 commit f47a8fd
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
}

1 comment on commit f47a8fd

@vercel
Copy link

@vercel vercel bot commented on f47a8fd Dec 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.