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
Props component includes ref and key props in props table when passed a component created with React.forwardRef. I would argue these props should not be exposed because they cannot be documented in our code. They are also part of React's API in that they are documented elsewhere and considered assumed knowledge in our docs.
I encountered a similar problem. Moreover, earlier on the same version of docz it was OK, perhaps this is due to the update of third libraries.
The problem is that when calling props.parent (styleguidist/react-docgen-typescript#151), it is always null. And therefore all properties fall into the props table.
UPD: it's breaking for typescript version > 3.5.
Bug Report
Describe the bug
Props
component includesref
andkey
props in props table when passed a component created withReact.forwardRef
. I would argue these props should not be exposed because they cannot be documented in our code. They are also part of React's API in that they are documented elsewhere and considered assumed knowledge in our docs.To Reproduce
Create this component
With this documentation
Expected behavior
ref
andkey
are omitted from generated props tableEnvironment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: