Closed eedrah closed 5 years ago
I just got the same thing for Consumer
also. Currently I'm using object
, but that seems like a shame, as that is going to match a lot more than wanted.
Seems related to #211.
Agreed it will be fixed with #211, so closed in favor of that pull request
Because it took me a little while to figure out – the thing #211 ended up adding specifically is PropTypes.elementType
, which seems to work fine for a provider.
Is there a proptype for Context.Provider? If I use
element
I get the following error message:and if I use
node
I get: