We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b555f02 commit 9755f43Copy full SHA for 9755f43
packages/reactivity/src/baseHandlers.ts
@@ -119,7 +119,8 @@ class BaseReactiveHandler implements ProxyHandler<Target> {
119
120
if (isRef(res)) {
121
// ref unwrapping - skip unwrap for Array + integer key.
122
- return targetIsArray && isIntegerKey(key) ? res : res.value
+ const value = targetIsArray && isIntegerKey(key) ? res : res.value
123
+ return isReadonly && isObject(value) ? readonly(value) : value
124
}
125
126
if (isObject(res)) {
0 commit comments