You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
We have a bug in our components propTypes for the content slot. Most of our components use the Slot component to generate their content slot, meaning that the propTypes for content prop should be:
Expected Result
content: customPropTypes.itemShorthand
Actual Result
content: customPropTypes.contentShorthand
Solution
go to all components and verify their propTypes for the slots are correct;
for all component slots created with Slot component, replace customPropTypes.contentShorthand propType for that slot with customPropTypes.itemShorthand
check in docs examples that warnings such as the one below don't appear anymore (for instance when providing an object as a slot value):
<Buttoncontent={{content: "Click here"}}/>
will generate the following warning:
The text was updated successfully, but these errors were encountered:
Replace
contentShorthand
withitemShorthand
Steps
We have a bug in our components
propTypes
for thecontent
slot. Most of our components use theSlot
component to generate theircontent
slot, meaning that thepropTypes
forcontent
prop should be:Expected Result
Actual Result
Solution
propTypes
for the slots are correct;Slot
component, replacecustomPropTypes.contentShorthand
propType for that slot withcustomPropTypes.itemShorthand
will generate the following warning:
The text was updated successfully, but these errors were encountered: