feat(player): Add validation to Player.props.component#820
feat(player): Add validation to Player.props.component#820JonnyBurger merged 7 commits intoremotion-dev:mainfrom
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). remotion – ./🔍 Inspect: https://vercel.com/remotion/remotion/GhC9Tyd9jc1nwuARN7U5o1RCE1jn |
|
It would be nice to check the validity of a function with signature |
|
Thanks a lot! Quality!! 🙌 You are right, we cannot test for everything, but I added one more misunderstanding that can happen. Hope it helps someone! |
|
@JonnyBurger looks like the two commits from the closed PR the other day made it into this one? d044907 and c8078e0. Looks like my forked repo is messy! |
Could've sworn I reset the fork to upstream but apparently not... what do you reckon is the best course of action? |
|
@SkyezerFox Oh you are right. Very strange, I think it has something to do with me using GitHub Desktop to check it out. It just added two commits to push. Don't know why, but I'll just remove those and then merge it. Thanks for catching this super quickly! |
|
this PR is super awesome. thanks @SkyezerFox 🔥 |
Simple check to validate
Player.props.componentis not a<Composition />element, as rendering this has no visible result. Test included!