MCPcopy
hub / github.com/vuejs/composition-api / ssrMockReactivity

Function ssrMockReactivity

src/reactivity/set.ts:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 const ob = target.__ob__
29
30 function ssrMockReactivity() {
31 // in SSR, there is no __ob__. Mock for reactivity check
32 if (ob && isObject(val) && !hasOwn(val, '__ob__')) {
33 mockReactivityDeep(val)
34 }
35 }
36
37 if (isArray(target)) {
38 if (isValidArrayIndex(key)) {

Callers 1

setFunction · 0.85

Calls 3

isObjectFunction · 0.90
hasOwnFunction · 0.90
mockReactivityDeepFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…