mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 10:38:32 +08:00
15 lines
467 B
TypeScript
15 lines
467 B
TypeScript
'use client'
|
|
|
|
import type { ReactNode } from 'react'
|
|
import { useSuspenseQueries } from '@tanstack/react-query'
|
|
import { userProfileQueryOptions } from '@/features/account-profile/client'
|
|
import { systemFeaturesQueryOptions } from '@/features/system-features/client'
|
|
|
|
export function ConsoleBootstrapGate({ children }: { children: ReactNode }) {
|
|
useSuspenseQueries({
|
|
queries: [userProfileQueryOptions(), systemFeaturesQueryOptions()],
|
|
})
|
|
|
|
return children
|
|
}
|