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

Function mount

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

Source from the content-addressed store, hash-verified

376 '%s instance isolation',
377 (mode) => {
378 function mount(client = queryClient, manager = onlineManager) {
379 return mode === 'full'
380 ? renderDevtools({
381 client,
382 onlineManager: manager,
383 initialIsOpen: true,
384 })
385 : render(() => (
386 <DevtoolsPanelComponent
387 client={client}
388 onlineManager={manager}
389 queryFlavor="TanStack Query"
390 version="5"
391 />
392 ))
393 }
394
395 it('should keep cache notifications and cleanup independent for the same query key', () => {
396 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