mirror of
https://github.com/langgenius/dify.git
synced 2026-07-28 15:49:42 +08:00
perf(web): lazy-load Home creation modals (#39634)
This commit is contained in:
parent
26a43db6a4
commit
4313d23889
@ -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[]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user