fix(reactivity): fix tracking for readonly + reactive Map (#3604)
fix #3602
This commit is contained in:
@@ -49,6 +49,10 @@ function get(
|
||||
return wrap(target.get(key))
|
||||
} else if (has.call(rawTarget, rawKey)) {
|
||||
return wrap(target.get(rawKey))
|
||||
} else if (target !== rawTarget) {
|
||||
// #3602 readonly(reactive(Map))
|
||||
// ensure that the nested reactive `Map` can do tracking for itself
|
||||
target.get(key)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user