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
The documentation includes examples of the shouldForwardProp option which can be passed to withConfig, but it does not mention the other props which are accepted such as displayName.
Should the docs be updated to show that displayName can also be passed to withConfig? Or is this argument not intended to be used directly via withConfig?
babel-plugin-styled-components does not use the display name defined on the component itself if withConfig has been used and displayName has not been passed as an argument to withConfig.
The documentation includes examples of the
shouldForwardProp
option which can be passed to withConfig, but it does not mention the other props which are accepted such asdisplayName
.Should the docs be updated to show that
displayName
can also be passed towithConfig
? Or is this argument not intended to be used directly viawithConfig
?babel-plugin-styled-components
does not use the display name defined on the component itself ifwithConfig
has been used and displayName has not been passed as an argument towithConfig
.Related: DefinitelyTyped/DefinitelyTyped#52598
The text was updated successfully, but these errors were encountered: