mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 03:55:25 -04:00
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { createStore } from 'jotai'
|
|
import { queryClientAtom } from 'jotai-tanstack-query'
|
|
import { createTestQueryClient } from '@/test/query-client'
|
|
|
|
export const createQueryAtomTestStore = () => {
|
|
const queryClient = createTestQueryClient()
|
|
const store = createStore()
|
|
store.set(queryClientAtom, queryClient)
|
|
|
|
return { queryClient, store }
|
|
}
|