Closed sandrews2 closed 4 years ago
When v === null , typeof v === 'object' was returning true. And the subsequent check for v.type was throwing an error. An example of this is when a prop is something like [null, null, null, 'display'] which is very common when using theme-ui
typeof v === 'object'
v.type
When v === null ,
typeof v === 'object'
was returning true. And the subsequent check forv.type
was throwing an error. An example of this is when a prop is something like [null, null, null, 'display'] which is very common when using theme-ui