dify/web/app/(commonLayout)/profile-bootstrap-gate.tsx
yyh 66a545fc6d
refactor: centralize deployment edition in system features (#39454)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: GareArc <garethcxy@dify.ai>
2026-07-24 07:15:02 +00:00

12 lines
332 B
TypeScript

'use client'
import type { ReactNode } from 'react'
import { useSuspenseQuery } from '@tanstack/react-query'
import { userProfileQueryOptions } from '@/features/account-profile/client'
export function ProfileBootstrapGate({ children }: { children: ReactNode }) {
useSuspenseQuery(userProfileQueryOptions())
return children
}