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
TabsPropsid prop is required, but somewhere this gets changed to optional:
I think this has to do with the usage of React.PureComponent in AbstractPureComponent, it seems this changes all properties to optional, which could lead to major issues.
I think this has to do with the usage of React.PureComponent in AbstractPureComponent
Actually, it is due to assigning the type of defaultProps in a class component-- Setting the type of defaultProps to Partial makes the props of the component all partial, so that's a no-go. We can still use satisfies to check the type.
TabsProps
id
prop is required, but somewhere this gets changed to optional:I think this has to do with the usage of
React.PureComponent
inAbstractPureComponent
, it seems this changes all properties to optional, which could lead to major issues.At somepoint, all component
class
es should probably be migrated to functions, per React's reccomendation: https://react.dev/reference/react/PureComponent#alternativesThe text was updated successfully, but these errors were encountered: