MCPcopy
hub / github.com/vuejs/devtools-v6 / walkComponentTree

Method walkComponentTree

packages/app-backend-api/src/api.ts:96–105  ·  view source on GitHub ↗
(instance: ComponentInstance, maxDepth = -1, filter: string = null, recursively = false)

Source from the content-addressed store, hash-verified

94 }
95
96 async walkComponentTree(instance: ComponentInstance, maxDepth = -1, filter: string = null, recursively = false) {
97 const payload = await this.callHook(Hooks.WALK_COMPONENT_TREE, {
98 componentInstance: instance,
99 componentTreeData: null,
100 maxDepth,
101 filter,
102 recursively,
103 })
104 return payload.componentTreeData
105 }
106
107 async visitComponentTree(instance: ComponentInstance, treeNode: ComponentTreeNode, filter: string = null, app: App) {
108 const payload = await this.callHook(Hooks.VISIT_COMPONENT_TREE, {

Callers 3

sendComponentTreeDataFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45

Calls 1

callHookMethod · 0.95

Tested by

no test coverage detected