MCPcopy Create free account
hub / github.com/TanStack/query / mount

Function mount

packages/query-devtools/src/__tests__/Devtools.test.tsx:366–381  ·  view source on GitHub ↗
(client = queryClient, manager = onlineManager)

Source from the content-addressed store, hash-verified

364 '%s instance isolation',
365 (mode) => {
366 function mount(client = queryClient, manager = onlineManager) {
367 return mode === 'full'
368 ? renderDevtools({
369 client,
370 onlineManager: manager,
371 initialIsOpen: true,
372 })
373 : render(() => (
374 <DevtoolsPanelComponent
375 client={client}
376 onlineManager={manager}
377 queryFlavor="TanStack Query"
378 version="5"
379 />
380 ))
381 }
382
383 it('should keep cache notifications and cleanup independent for the same query key', () => {
384 const secondClient = new QueryClient()

Callers 1

Devtools.test.tsxFile · 0.70

Calls 2

renderDevtoolsFunction · 0.70
renderFunction · 0.50

Tested by

no test coverage detected