Closed joncursi closed 7 years ago
There is no IPT equivalent of PropTypes.oneOfType. The following code is therefore, unfortunately, invalid:
PropTypes.oneOfType([ ImmutablePropTypes.contains({ ... }), ImmutablePropTypes.contains({ ... }), ImmutablePropTypes.contains({ ... }), ]);
oneOfType has no idea how to interpret ImmutablePropTypes, so it throws the following warning:
Warning: Failed prop type: checker.apply is not a function
False alarm! I had an issue within my ImmutablePropTypes.contains({ ... }) declaration, sorry bout that!
ImmutablePropTypes.contains({ ... })
There is no IPT equivalent of PropTypes.oneOfType. The following code is therefore, unfortunately, invalid:
oneOfType has no idea how to interpret ImmutablePropTypes, so it throws the following warning:
Warning: Failed prop type: checker.apply is not a function