演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
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)
|
|
}
|
|
}
|