Open History to see the last commit
1import { EventClient } from '@tanstack/devtools-event-client'
2β
3type EventMap = {
4 'counter-state': { count: number; history: Array<number> }
5}
6β
7class CustomEventClient extends EventClient<EventMap> {
8 constructor() {
9 super({
10 pluginId: 'custom-devtools',
11 debug: true,
12 })
13 }
14}
15β
16// This is where the magic happens, it'll be used throughout your application.
17export const DevtoolsEventClient = new CustomEventClient()