perf(web): lazy-load Home creation modals (#39634)

This commit is contained in:
yyh 2026-07-27 15:48:35 +08:00 committed by GitHub
parent 26a43db6a4
commit 4313d23889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,10 +15,8 @@ import { useQueryState } from 'nuqs'
import * as React from 'react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import DSLConfirmModal from '@/app/components/app/create-from-dsl-modal/dsl-confirm-modal'
import AppCard from '@/app/components/explore/app-card'
import { Banner } from '@/app/components/explore/banner/banner'
import CreateAppModal from '@/app/components/explore/create-app-modal'
import {
getStepByStepTourPermissionVariant,
trackStepByStepTourEvent,
@ -50,6 +48,11 @@ import { ExploreHomeSkeleton } from './loading-skeletons'
import s from './style.module.css'
const TryApp = dynamic(() => import('../try-app'), { ssr: false })
const CreateAppModal = dynamic(() => import('../create-app-modal'), { ssr: false })
const DSLConfirmModal = dynamic(
() => import('@/app/components/app/create-from-dsl-modal/dsl-confirm-modal'),
{ ssr: false },
)
type ExploreAppListData = {
categories: string[]