mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 10:09:39 +08:00
perf(chat): load draft and credential cards only when a reply needs them
This commit is contained in:
@@ -109,11 +109,8 @@ import {
|
||||
type MasteryAnswerRejection,
|
||||
type MasteryQuestion,
|
||||
} from "@/lib/mastery-question";
|
||||
import { SetupCredentialCard } from "@/components/chat/home/SetupCredentialCard";
|
||||
import { extractSetupCredential } from "@/lib/setup-signals";
|
||||
import { PartnerDraftCard } from "@/components/chat/home/PartnerDraftCard";
|
||||
import { extractPartnerDraft } from "@/lib/partner-draft";
|
||||
import { CreationDraftCard } from "@/components/chat/home/CreationDraftCard";
|
||||
import { extractCreationDraft } from "@/lib/creation-draft";
|
||||
import { extractMasteryHandoffs } from "@/lib/mastery-handoff";
|
||||
import ContextReferenceTree, {
|
||||
@@ -139,6 +136,19 @@ import {
|
||||
researchFollowupStatus,
|
||||
} from "@/lib/deep-research-report";
|
||||
|
||||
const PartnerDraftCard = dynamic(
|
||||
() => import("@/components/chat/home/PartnerDraftCard").then(module => module.PartnerDraftCard),
|
||||
{ ssr: false },
|
||||
);
|
||||
const CreationDraftCard = dynamic(
|
||||
() => import("@/components/chat/home/CreationDraftCard").then(module => module.CreationDraftCard),
|
||||
{ ssr: false },
|
||||
);
|
||||
const SetupCredentialCard = dynamic(
|
||||
() => import("@/components/chat/home/SetupCredentialCard").then(module => module.SetupCredentialCard),
|
||||
{ ssr: false },
|
||||
);
|
||||
|
||||
const GeneratedFileCardList = dynamic(() => import("./GeneratedFileCardList"), { ssr: false });
|
||||
|
||||
const MathAnimatorViewer = dynamic(
|
||||
|
||||
Reference in New Issue
Block a user