Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Validate props on context providers #12658
Prop types aren’t being checked on context providers, resulting in no dev warning in situations like the following:
References issue: #12636
I only added one test as I thought multiple tests with different propType specification would just be testing the underlying prop-types library instead of react. If this needs to be moved or I’ve missed something let me know!
Details of bundled changes.