Răsfoiți Sursa

Merge pull request #7889 from weseek/support/render-on-client-search-result-list

support: Render SearchPageBase in CSR
Yuki Takei 2 ani în urmă
părinte
comite
db99cfe161
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      apps/app/src/components/SearchPage/SearchPageBase.tsx

+ 1 - 2
apps/app/src/components/SearchPage/SearchPageBase.tsx

@@ -17,8 +17,6 @@ import { mutatePageTree } from '~/stores/page-listing';
 
 import { ForceHideMenuItems } from '../Common/Dropdown/PageItemControl';
 
-import { SearchResultList } from './SearchResultList';
-
 import styles from './SearchPageBase.module.scss';
 
 // https://regex101.com/r/brrkBu/1
@@ -44,6 +42,7 @@ type Props = {
 }
 
 
+const SearchResultList = dynamic(() => import('./SearchResultList').then(mod => mod.SearchResultList), { ssr: false });
 const SearchResultContent = dynamic(() => import('./SearchResultContent').then(mod => mod.SearchResultContent), {
   ssr: false,
   loading: () => <></>,