Yuki Takei преди 9 месеца
родител
ревизия
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>
   );
-};
+});