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

Function genRefFlag

packages/runtime-core/src/customFormatter.ts:197–205  ·  view source on GitHub ↗
(v: Ref)

Source from the content-addressed store, hash-verified

195 }
196
197 function genRefFlag(v: Ref) {
198 if (isShallow(v)) {
199 return `ShallowRef`
200 }
201 if ((v as any).effect) {
202 return `ComputedRef`
203 }
204 return `Ref`
205 }
206
207 if ((window as any).devtoolsFormatters) {
208 ;(window as any).devtoolsFormatters.push(formatter)

Callers 1

headerFunction · 0.85

Calls 1

isShallowFunction · 0.90

Tested by

no test coverage detected