فهرست منبع

add comment about routeRef

reiji-h 3 سال پیش
والد
کامیت
18d1940c56
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      apps/app/src/components/SearchPage.tsx

+ 2 - 0
apps/app/src/components/SearchPage.tsx

@@ -92,6 +92,8 @@ SearchResultListHead.displayName = 'SearchResultListHead';
 export const SearchPage = (): JSX.Element => {
   const { t } = useTranslation();
   const { data: showPageLimitationL } = useShowPageLimitationL();
+
+  // routerRef solve the problem of infinite redrawing that occurs with routers
   const router = useRouter();
   const routerRef = useRef(router);