MCPcopy Create free account
hub / github.com/HuolalaTech/react-query-kit / myMiddileware

Function myMiddileware

tests/createQuery.test.tsx:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79 it('should return the correct initial data from middleware', async () => {
80 const myMiddileware: Middleware = useQueryNext => {
81 return options => {
82 return useQueryNext({
83 ...options,
84 initialData: 'initialData',
85 enabled: false,
86 })
87 }
88 }
89
90 const useGeneratedQuery = createQuery({
91 queryKey: uniqueKey(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected