Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
1025
const
shallowRef = (value) => {
1026
return
isRef(value)
1027
? value
1028
: createRef(value, false);
1029
};
1030
/**
1031
* @description 创建处理 reactive
1032
* @param isReadonly
Callers
3
watchRef
Function · 0.70
watchEffectRef
Function · 0.70
Select
Function · 0.70
Calls
2
isRef
Function · 0.70
createRef
Function · 0.70
Tested by
no test coverage detected