MCPcopy
hub / github.com/vuejs/core / setup

Function setup

packages/runtime-core/__tests__/rendererComponent.spec.ts:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 test('component child synchronously updating parent state should trigger parent re-render', async () => {
116 const App = {
117 setup() {
118 const n = ref(0)
119 provide('foo', n)
120 return () => {
121 return [h('div', n.value), h(Child)]
122 }
123 },
124 }
125
126 const Child = {

Callers

nothing calls this directly

Calls 7

hFunction · 0.85
injectFunction · 0.85
refFunction · 0.70
provideFunction · 0.70
pushMethod · 0.65
watchFunction · 0.50
emitFunction · 0.50

Tested by

no test coverage detected