/** @jsx jsx */ import { Text, Center, jsx } from '@vtex/store-ui' import { FC, Fragment } from 'react' import { SearchPageProps } from '../../templates/search' import { SearchTemplateAside, SearchTemplateContainer, SearchTemplateMain, } from '../Search/SearchTemplate' import SuspenseDevice from '../Suspense/Device' const AboveTheFold: FC = () => (
This is the Above the fold part of your search template. All sync items should be rendered in here. Thus, make sure all data rendered in this part is fetched during Server Side Rendering and revalidated on the client if necessary. All data is available via props
This is where the desktop filters should fit. Note that Desktop filters are lazy loaded and not SSR, thus this component should be dynamically imported via React.lazy
This is where the product list should be loaded. Note that a huge number of products delay the first paint, thus harming hugely the performance mainly in mobile devices. A good number varies from 8 to 16 depending on your case
) export default AboveTheFold