Yuki Takei 7 месяцев назад
Родитель
Сommit
c663f34209
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/components/PageView/PageView.tsx

+ 2 - 2
apps/app/src/components/PageView/PageView.tsx

@@ -40,7 +40,7 @@ type Props = {
   className?: string,
 }
 
-export const PageView = (props: Props): JSX.Element => {
+export const PageView = React.memo((props: Props): JSX.Element => {
   const renderStartTime = performance.now();
 
   const commentsContainerRef = useRef<HTMLDivElement>(null);
@@ -238,4 +238,4 @@ export const PageView = (props: Props): JSX.Element => {
 
     </PageViewLayout>
   );
-};
+});