Open brandon-pereira opened 5 years ago
Actually, an update on this.. it seems the displayName is being stripped UNLESS I also add PropTypes.displayName = 'navigation'
. But, thats not a problem.. I've updated my generator to automatically add this.
@brandon-pereira any chance i could get a full reproduction repo to play around with?
I'm also having this issue when wrapping components in React.memo(). Note that for me, my 'propTypes' column disappears.
@zach-aries example repo would be 🔥
Hey! Love the addon!
I'm getting a proptype warning when using with React hooks.
My component:
logs warning:
When I remove the
React.memo()
wrapper around my component, the warning goes away.I'm open to helping resolve the issue if needed. It seems to be like a prop warning (proptable is rendering fine) so maybe we can just make the prop type more generic?