Skip to content

Commit

Permalink
fix: shallowReactive unwrap refs (vuejs#12597)
Browse files Browse the repository at this point in the history
  • Loading branch information
deft-v committed Jul 3, 2022
1 parent db67e68 commit ecdb62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/observer/index.ts
Expand Up @@ -181,7 +181,7 @@ export function defineReactive(
}
}
}
return isRef(value) ? value.value : value
return isRef(value) && !shallow ? value.value : value
},
set: function reactiveSetter(newVal) {
const value = getter ? getter.call(obj) : val
Expand Down

0 comments on commit ecdb62b

Please sign in to comment.