moroshko / react-scanner

Extract React components and props usage from code.
MIT License
563 stars 40 forks source link

fix: record usage of component in a prop of unrelated component import #49

Closed mihkeleidast closed 2 years ago

mihkeleidast commented 2 years ago

Closes #48.

Investigated a bit, seems that if we use the exit hook instead of the default enter hook, the children of "unrelated imported components" are also traversed, recording such usage.

moroshko commented 2 years ago

Thanks for fixing this! Published 1.0.3