Closed bunkscene closed 1 year ago
Also, since when can you pass prevProps
, nextProps
to a functional component? Doesn't it suppose to only receive props
?
Found out my problem. I have multiple packages and my root is in a different package than the app. So, I had the /// <reference types="@welldone-software/why-did-you-render" />
in my root package, but it was missing in the app package. It was hard to track down because the IDE had no issues with this, but tsc did!
I can't for the life of me figure out why I am getting this typing error:
error TS2339: Property 'whyDidYouRender' does not exist on type 'NamedExoticComponent<Props>'.
Any thoughts?