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
I've tried to use the template for the PropTable component from the readme, but encountered an issue: Because useDynamicImport returns null on the first render, and only seems to provide the props in the next render, the component crashes the React app. Adding
if (!props) {
return null;
}
after the useDynamicImport call works. Maybe the readme should be updated or it should be mentioned that useDynamicImport may return null at the start :)
The text was updated successfully, but these errors were encountered:
lukasbach
added a commit
to lukasbach/docusaurus-plugin-react-docgen-typescript
that referenced
this issue
Jun 20, 2021
Hi, awesome project :)
I've tried to use the template for the PropTable component from the readme, but encountered an issue: Because
useDynamicImport
returns null on the first render, and only seems to provide the props in the next render, the component crashes the React app. Addingafter the
useDynamicImport
call works. Maybe the readme should be updated or it should be mentioned thatuseDynamicImport
may return null at the start :)The text was updated successfully, but these errors were encountered: