/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.5.2
shared/git/page.tsx
22 строки
570 B
chrisnojima
why did you render 1 (#26119)
05 янв 2024, 19:34
Не верифицирован
05 янв 2024, 19:34
4e89dab
Код
Авторство
О чём код?
import * as React from 'react' import * as C from '@/constants' import {HeaderTitle, HeaderRightActions} from './nav-header' const getOptions = C.isMobile ? {title: 'Git'} : { headerRightActions: HeaderRightActions, headerTitle: HeaderTitle, title: 'Git', } const Index = React.lazy(async () => import('.')) type OwnProps = C.ViewPropsToPageProps<typeof Index> const Screen = (p: OwnProps) => ( <React.Suspense> <Index {...p.route.params} /> </React.Suspense> ) const Page = {getOptions, getScreen: () => Screen} export default Page