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

Function proxyRefs

packages/reactivity/src/ref.ts:280–286  ·  packages/reactivity/src/ref.ts::proxyRefs
(
  objectWithRefs: T,
)

Source from the content-addressed store, hash-verified

278 * that contains refs.
279 */
280export function proxyRefs<T extends object>(
281 objectWithRefs: T,
282): ShallowUnwrapRef<T> {
283 return isReactive(objectWithRefs)
284 ? (objectWithRefs as ShallowUnwrapRef<T>)
285 : new Proxy(objectWithRefs, shallowUnwrapHandlers)
286}
287
288export type CustomRefFactory<T, S = T> = (
289 track: () => void,

Callers 3

handleSetupResultFunction · 0.90
ref.test-d.tsFile · 0.85

Calls 1

isReactiveFunction · 0.90

Tested by

no test coverage detected