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

Function renderDevtools

packages/vue-query-devtools/src/__tests__/devtools.test.ts:43–49  ·  view source on GitHub ↗
(initialProps: DevtoolsOptions)

Source from the content-addressed store, hash-verified

41 let container: HTMLDivElement | undefined
42
43 const renderDevtools = (initialProps: DevtoolsOptions) => {
44 const props = shallowRef(initialProps)
45 container = document.createElement('div')
46 app = createApp(() => h(Devtools, props.value))
47 app.mount(container)
48 return props
49 }
50
51 beforeEach(() => {
52 queryClient = new QueryClient()

Callers 1

devtools.test.tsFile · 0.70

Calls 1

mountMethod · 0.45

Tested by

no test coverage detected