mirror of
https://github.com/langgenius/dify.git
synced 2026-07-22 11:38:34 +08:00
11 lines
440 B
TypeScript
11 lines
440 B
TypeScript
import type { QueryClient } from '@tanstack/react-query'
|
|
import type { ReactNode } from 'react'
|
|
import { createElement } from 'react'
|
|
import { QueryClientTestProvider } from '@/test/console/query-provider'
|
|
|
|
export const createQueryClientWrapper = (queryClient: QueryClient) => {
|
|
return function QueryClientWrapper({ children }: { children: ReactNode }) {
|
|
return createElement(QueryClientTestProvider, { queryClient }, children)
|
|
}
|
|
}
|