planet-webapp icon indicating copy to clipboard operation
planet-webapp copied to clipboard

Avoid using the entire router object in dependencies

Open coderabbitai[bot] opened this issue 1 year ago • 0 comments
trafficstars

As discussed in PR #2296, it's recommended to avoid including the entire router object in the dependencies array in pages/sites/[slug]/[locale]/projects-archive/[p].tsx at line 190. Instead, specify only the needed properties to prevent unnecessary re-renders.

Comment reference

coderabbitai[bot] avatar Nov 07 '24 13:11 coderabbitai[bot]