Yuki Takei 2 месяцев назад
Родитель
Сommit
3d3e0a5509

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

@@ -36,11 +36,6 @@ type Props = CommonInitialProps &
 const PrivateLegacyPage: NextPage<Props> = (props: Props) => {
   const { t } = useTranslation();
 
-  // clear the cache for the current page
-  //  in order to fix https://redmine.weseek.co.jp/issues/135811
-  // useHydratePageAtoms(undefined);
-  // useCurrentPathname('/_private-legacy-pages');
-
   // Hydrate server-side data
   useHydrateBasicLayoutConfigurationAtoms(
     props.searchConfig,

+ 0 - 6
apps/app/src/pages/_search/index.page.tsx

@@ -5,7 +5,6 @@ import { useTranslation } from 'next-i18next';
 
 import { DrawioViewerScript } from '~/components/Script/DrawioViewerScript';
 import { useSetSearchPage } from '~/states/context';
-import { useHydratePageAtoms } from '~/states/page/hydrate';
 
 import type { NextPageWithLayout } from '../_app.page';
 import type { BasicLayoutConfigurationProps } from '../basic-layout-page';
@@ -39,11 +38,6 @@ type Props = CommonInitialProps &
 const SearchResultPage: NextPageWithLayout<Props> = (props: Props) => {
   const { t } = useTranslation();
 
-  // clear the cache for the current page
-  //  in order to fix https://redmine.weseek.co.jp/issues/135811
-  useHydratePageAtoms(undefined, undefined);
-  // useCurrentPathname('/_search');
-
   // Hydrate server-side data
   useHydrateBasicLayoutConfigurationAtoms(
     props.searchConfig,

+ 0 - 5
apps/app/src/pages/me/[[...path]].page.tsx

@@ -92,11 +92,6 @@ const MePage: NextPageWithLayout<Props> = (props: Props) => {
 
   const targetPage = getTargetPageToRender(mePagesMap, pagePathKeys);
 
-  // // clear the cache for the current page
-  // //  in order to fix https://redmine.weseek.co.jp/issues/135811
-  // useHydratePageAtoms(undefined);
-  // useCurrentPathname('/me');
-
   const title = useCustomTitle(targetPage.title);
 
   return (

+ 0 - 5
apps/app/src/pages/tags/index.page.tsx

@@ -48,11 +48,6 @@ type Props = CommonInitialProps &
 const TagPage: NextPageWithLayout<Props> = (props: Props) => {
   const { t } = useTranslation();
 
-  // // clear the cache for the current page
-  // //  in order to fix https://redmine.weseek.co.jp/issues/135811
-  // useHydratePageAtoms(undefined);
-  // useCurrentPathname('/tags');
-
   const [activePage, setActivePage] = useState<number>(1);
   const [offset, setOffset] = useState<number>(0);
 

+ 0 - 5
apps/app/src/pages/trash/index.page.tsx

@@ -47,11 +47,6 @@ type Props = CommonInitialProps &
   RendererConfigProps;
 
 const TrashPage: NextPageWithLayout<Props> = (props: Props) => {
-  // // clear the cache for the current page
-  // //  in order to fix https://redmine.weseek.co.jp/issues/135811
-  // useHydratePageAtoms(undefined);
-  // useCurrentPathname('/trash');
-
   // Hydrate server-side data
   useHydrateServerConfigurationAtoms(props.serverConfig);