perf(client): defer chat persistence dependencies
This commit is contained in:
@@ -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,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 (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user