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

Function setup

packages/runtime-core/__tests__/hydration.spec.ts:538–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

536 let foo: any
537 const App = {
538 setup() {
539 const flag = ref(true)
540 foo = () => {
541 flag.value = false
542 }
543 onServerPrefetch(() => (flag.value = false))
544 return { flag }
545 },
546 components: {
547 Comp,
548 },

Callers

nothing calls this directly

Calls 14

useCssVarsFunction · 0.90
hFunction · 0.85
withDirectivesFunction · 0.85
renderSlotFunction · 0.85
exposeFunction · 0.85
openBlockFunction · 0.85
withCtxFunction · 0.85
createElementBlockFunction · 0.85
createCommentVNodeFunction · 0.85
refFunction · 0.70
fnFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected