import { TanstackQueryDevtools } from '@tanstack/query-devtools' import { onlineManager, useQueryClient } from '@tanstack/solid-query' import { createEffect, createMemo, onCleanup, onMount } from 'solid-js' import type { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme, } from '@tanstack/query-devtools' import type { QueryClient } from '@tanstack/solid-query' interface DevtoolsOptions { /** * Set this true if you want the dev tools to default to being open */ initialIsOpen?: boolean /** * The position of the TanStack logo to open and close the devtools panel. * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative' * @defaultValue bottom-right */ buttonPosition?: DevtoolsButtonPosition /** * The position of the Solid Query devtools panel. * 'top' | 'bottom' | 'left' | 'right' * @defaultValue bottom */ position?: DevtoolsPosition /** * Custom instance of QueryClient */ client?: QueryClient /** * Use this so you can define custom errors that can be shown in the devtools. */ errorTypes?: Array /** * @deprecated The devtools no longer add a `