Closed
Description
Vue version
3.5.11
Link to minimal reproduction
Steps to reproduce
- Open the reproduction link
- Check the Console
What is expected?
- Computed value (without a set function) is readonly, so maybe those nested in a reactive object should also be readonly, right?
- The PR below shows that mutating a readonly ref nested in a reactive object is not allowed, but it's not clear for this case
fix(reactivity): mutating a readonly ref nested in a reactive object should fail. (close #5042) #5048
What is actually happening?
isReadonly(ro.c)
returnsfalse
ro.c = undefined
throwsTypeError: 'set' on proxy: trap returned falsish for property 'c'
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels