MCPcopy
hub / github.com/vuejs/composition-api / afterRender

Function afterRender

src/utils/instance.ts:107–120  ·  view source on GitHub ↗
(vm: ComponentInstance)

Source from the content-addressed store, hash-verified

105}
106
107export function afterRender(vm: ComponentInstance) {
108 const stack = [(vm as any)._vnode as VNode]
109 while (stack.length) {
110 const vnode = stack.pop()
111 if (vnode) {
112 if (vnode.context) updateTemplateRef(vnode.context)
113 if (vnode.children) {
114 for (let i = 0; i < vnode.children.length; ++i) {
115 stack.push(vnode.children[i])
116 }
117 }
118 }
119 }
120}
121
122export function updateVmAttrs(vm: ComponentInstance, ctx?: SetupContext) {
123 if (!vm) {

Callers 2

mountedFunction · 0.90
updatedFunction · 0.90

Calls 1

updateTemplateRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…