Explorar o código

add comment about routeRef

reiji-h %!s(int64=3) %!d(string=hai) anos
pai
achega
18d1940c56
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);