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

Function shallowReactive

packages/reactivity/src/reactive.ts:143–153  ·  view source on GitHub ↗
(
  target: T,
)

Source from the content-addressed store, hash-verified

141 */
142/*@__NO_SIDE_EFFECTS__*/
143export function shallowReactive<T extends object>(
144 target: T,
145): ShallowReactive<T> {
146 return createReactiveObject(
147 target,
148 false,
149 shallowReactiveHandlers,
150 shallowCollectionHandlers,
151 shallowReactiveMap,
152 )
153}
154
155type Primitive = string | number | boolean | bigint | symbol | undefined | null
156export type Builtin = Primitive | Function | Date | Error | RegExp

Callers 12

ref.spec.tsFile · 0.90
reactive.spec.tsFile · 0.90
Set.spec.tsFile · 0.90
initPropsFunction · 0.90
apiWatch.spec.tsFile · 0.90
effect.spec.tsFile · 0.85
renderList.spec.tsFile · 0.85
ref.test-d.tsFile · 0.85

Calls 1

createReactiveObjectFunction · 0.85

Tested by

no test coverage detected