perf(client): defer chat persistence dependencies

This commit is contained in:
2026-07-15 17:58:06 +08:00
parent 86ffbbcdbc
commit 05ca15be48
15 changed files with 115 additions and 81 deletions
+4 -6
View File
@@ -3,12 +3,10 @@
import type { ReactNode } from "react";
import { ChatProvider } from "@/stores/chat/chat-context";
import { PaymentProvider } from "@/stores/payment";
import {
ChatAuthSync,
ChatPaymentSuccessSync,
PaymentSuccessSync,
} from "@/stores/sync";
import { PaymentProvider } from "@/stores/payment/payment-context";
import { ChatAuthSync } from "@/stores/sync/chat-auth-sync";
import { ChatPaymentSuccessSync } from "@/stores/sync/chat-payment-success-sync";
import { PaymentSuccessSync } from "@/stores/sync/payment-success-sync";
export function ChatRouteProviders({ children }: { children: ReactNode }) {
return (
+2 -2
View File
@@ -2,8 +2,8 @@
import type { ReactNode } from "react";
import { PaymentProvider } from "@/stores/payment";
import { PaymentSuccessSync } from "@/stores/sync";
import { PaymentProvider } from "@/stores/payment/payment-context";
import { PaymentSuccessSync } from "@/stores/sync/payment-success-sync";
export function PaymentRouteProvider({ children }: { children: ReactNode }) {
return (
+1 -1
View File
@@ -15,7 +15,7 @@ import { AppNavigationGuard } from "@/router/app-navigation-guard";
import { AuthProvider } from "@/stores/auth/auth-context";
import { AuthStatusChecker } from "@/stores/auth/auth-status-checker";
import { OAuthSessionSync } from "@/stores/auth/oauth-session-sync";
import { UserAuthSync } from "@/stores/sync";
import { UserAuthSync } from "@/stores/sync/user-auth-sync";
import { UserProvider } from "@/stores/user/user-context";
export interface RootProvidersProps {