Skip to content

Commit

Permalink
Update UseEffect dependencies. Fixes #212
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatakeshi committed Jul 14, 2020
1 parent f0fb9f9 commit 25bcef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlyrComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Plyr: React.SFC<PlyrProps> = (props) => {
player.source = source
}
return () => player?.destroy()
})
}, [source])

return <video className="plyr-react plyr" {...rest} />
}
Expand Down

0 comments on commit 25bcef7

Please sign in to comment.