Add option to always run validation
Opened this issue · 0 comments
chiptoe commented
Currently checkPropTypes()
is wrapped in if (process.env.NODE_ENV !== 'production') {
condition.
Can we add some config object as 6th parameter, something like:
function checkPropTypes(typeSpecs, values, location, componentName, getStack, { validateAlways: boolean }) {
Thanks