소스 검색

refactor: move dynamic import of PrivateLegacyPages to the top for clarity

Shun Miyazawa 4 달 전
부모
커밋
13e75ddfde
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      apps/app/src/pages/_private-legacy-pages/index.page.tsx

+ 6 - 6
apps/app/src/pages/_private-legacy-pages/index.page.tsx

@@ -21,6 +21,12 @@ const SearchResultLayout = dynamic(
   { ssr: false },
 );
 
+const PrivateLegacyPages = dynamic(
+  // biome-ignore lint/style/noRestrictedImports: no-problem dynamic import
+  () => import('~/features/search/client/components/PrivateLegacyPages'),
+  { ssr: false },
+);
+
 type Props = CommonInitialProps &
   CommonEachProps &
   BasicLayoutConfigurationProps &
@@ -30,12 +36,6 @@ type Props = CommonInitialProps &
 const PrivateLegacyPage: NextPage<Props> = (props: Props) => {
   const { t } = useTranslation();
 
-  const PrivateLegacyPages = dynamic(
-    // biome-ignore lint/style/noRestrictedImports: no-problem dynamic import
-    () => import('~/features/search/client/components/PrivateLegacyPages'),
-    { ssr: false },
-  );
-
   // clear the cache for the current page
   //  in order to fix https://redmine.weseek.co.jp/issues/135811
   // useHydratePageAtoms(undefined);