Files
afilmory/apps/landing/src/providers/root/index.tsx
Innei b28b03c40b refactor: replace lazy loading feature with domMax in LazyMotion components
- Removed the framer-lazy-feature module and updated LazyMotion components in both landing and dashboard providers to use domMax directly.
- This change simplifies the feature loading process and improves performance by eliminating unnecessary imports.

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-05 00:41:16 +08:00

18 lines
606 B
TypeScript

'use client'
import { QueryClientProvider } from '@tanstack/react-query'
import { domMax, LazyMotion } from 'motion/react'
import type { JSX, PropsWithChildren } from 'react'
import { ProviderComposer } from '../../components/common/ProviderComposer'
import { queryClient } from '../../lib/query-client'
const contexts: JSX.Element[] = [
<QueryClientProvider key="queryClient" client={queryClient} />,
<LazyMotion features={domMax} strict key="framer" />,
]
export function Providers({ children }: PropsWithChildren) {
return <ProviderComposer contexts={contexts}>{children}</ProviderComposer>
}