MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / shallowRef

Function shallowRef

tech-study.js:1025–1029  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1023 * @returns
1024 */
1025const shallowRef = (value) => {
1026 return isRef(value)
1027 ? value
1028 : createRef(value, false);
1029};
1030/**
1031 * @description 创建处理 reactive
1032 * @param isReadonly

Callers 3

watchRefFunction · 0.70
watchEffectRefFunction · 0.70
SelectFunction · 0.70

Calls 2

isRefFunction · 0.70
createRefFunction · 0.70

Tested by

no test coverage detected