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 8cdd0ac commit 8cb4993
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 8cb4993

Please sign in to comment.