mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.docs.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
This package is still under active development and might have breaking changes in the future. Please use it with caution.
Usage
<script setup lang="ts">
import { TanStackDevtools } from '@tanstack/vue-devtools'
import { VueQueryDevtoolsPanel } from '@tanstack/vue-query-devtools'
const plugins = [{ name: 'Vue Query', component: VueQueryDevtoolsPanel }]
</script>
<template>
<TanStackDevtools
:eventBusConfig="{ connectToServerBus: true }"
:plugins="plugins"
/>
</template>
Creating plugins
In order to create a plugin for TanStack Devtools, you can use the plugins prop of the TanStackDevtools component. Here's an example of how to create a simple plugin:
<script setup lang="ts">
import { TanStackDevtools } from '@tanstack/vue-devtools'
const plugins = [
{
id: 'your-plugin-id',
name: 'Your Plugin',
component: CustomPluginComponent,
},
]
</script>
<template>
<TanStackDevtools
:eventBusConfig="{ connectToServerBus: true }"
:plugins="plugins"
/>
</template>