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 have a question regarding optimization. In my case, I need to render thousands of heavy components and from the documentation it is not 100% clear how to approach memoization with this library. I'm using Next.js.
Is React.memo for the Card component needed? Am I handling hook dependencies correctly? My idea was to prop drill hook deps instead of calling usePathname inside each Card. What would be the best approach here?
Best regards,
Arthur
The text was updated successfully, but these errors were encountered:
Hi!
First of all, thanks for the awesome library!
I have a question regarding optimization. In my case, I need to render thousands of heavy components and from the documentation it is not 100% clear how to approach memoization with this library. I'm using Next.js.
My setup looks like this:
Is
React.memo
for theCard
component needed? Am I handling hook dependencies correctly? My idea was to prop drill hook deps instead of callingusePathname
inside eachCard
. What would be the best approach here?Best regards,
Arthur
The text was updated successfully, but these errors were encountered: