react-docgen-typescript icon indicating copy to clipboard operation
react-docgen-typescript copied to clipboard

ES6 reassigned props default values not extracted

Open raunofreiberg opened this issue 3 years ago • 2 comments

Hey 👋

Thanks for the great library

I noticed that default values of props do not get extracted when their name is re-assigned:

export default function Text({ as: Component = 'p' }) {
  //
}

defaultValue.value will then be null for me. If I remove the re-assignment to Component, it will work.

Thanks

raunofreiberg avatar Mar 05 '21 11:03 raunofreiberg

There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one.

github-actions[bot] avatar Oct 09 '21 10:10 github-actions[bot]

There was no activity for a long time. The issue will be closed soon.

github-actions[bot] avatar Oct 10 '22 10:10 github-actions[bot]

Closing this issue as obsolete.

github-actions[bot] avatar Oct 17 '22 10:10 github-actions[bot]