-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathdevtools.tsx
More file actions
40 lines (38 loc) · 1.13 KB
/
devtools.tsx
File metadata and controls
40 lines (38 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'
import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'
import { TanstackDevtools } from '@tanstack/react-devtools'
import { StudioPlugin } from './prisma-plugin'
import ClientPlugin from './client-plugin'
const queryClient = new QueryClient()
export default function DevtoolsExample() {
return (
<>
<QueryClientProvider client={queryClient}>
<TanstackDevtools
eventBusConfig={{
debug: true,
}}
plugins={[
{
name: 'Tanstack Query',
render: <ReactQueryDevtoolsPanel />,
},
{
name: 'Tanstack Router',
render: <TanStackRouterDevtoolsPanel />,
},
{
name: 'Prisma Studio',
render: <StudioPlugin />,
},
{
name: 'Client Plugin',
render: <ClientPlugin />,
},
]}
/>
</QueryClientProvider>
</>
)
}