File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/vue-query/src/devtools Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 33import { setupDevtoolsPlugin } from '@vue/devtools-api'
44import type { CustomInspectorNode } from '@vue/devtools-api'
55import { rankItem } from '@tanstack/match-sorter-utils'
6- import type { Query } from '@tanstack/query-core'
6+ import type { Query , QueryCacheNotifyEvent } from '@tanstack/query-core'
77import type { QueryClient } from '../queryClient'
88import {
99 getQueryStateLabel ,
@@ -103,10 +103,15 @@ export function setupDevtools(app: any, queryClient: QueryClient) {
103103 api . sendInspectorTree ( pluginId )
104104 api . sendInspectorState ( pluginId )
105105
106+ const queryEvents : QueryCacheNotifyEvent [ 'type' ] [ ] = [
107+ 'added' ,
108+ 'removed' ,
109+ 'updated' ,
110+ ]
106111 if (
107112 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
108113 event &&
109- [ 'queryAdded' , 'queryRemoved' , 'queryUpdated' ] . includes ( event . type )
114+ queryEvents . includes ( event . type )
110115 ) {
111116 api . addTimelineEvent ( {
112117 layerId : pluginId ,
You can’t perform that action at this time.
0 commit comments