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

Function markRaw

packages/reactivity/src/reactive.ts:420–425  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

418 * @see {@link https://vuejs.org/api/reactivity-advanced.html#markraw}
419 */
420export function markRaw<T extends object>(value: T): Raw<T> {
421 if (!hasOwn(value, ReactiveFlags.SKIP) && Object.isExtensible(value)) {
422 def(value, ReactiveFlags.SKIP, true)
423 }
424 return value
425}
426
427/**
428 * Returns a reactive proxy of the given value (if possible).

Callers 10

reactive.spec.tsFile · 0.90
readonly.spec.tsFile · 0.90
createElementFunction · 0.90
createTextFunction · 0.90
createCommentFunction · 0.90
effect.spec.tsFile · 0.85
setupFunction · 0.85
KeepAlive.spec.tsFile · 0.85

Calls 2

hasOwnFunction · 0.90
defFunction · 0.90

Tested by 1

setupFunction · 0.68