packages/vue-devtools
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
@tanstack/vue-devtools#
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>