fix(watch): fix deep watchers on refs containing primitives (#984)
This commit is contained in:
@@ -286,6 +286,9 @@ export function instanceWatch(
|
||||
|
||||
function traverse(value: unknown, seen: Set<unknown> = new Set()) {
|
||||
if (!isObject(value) || seen.has(value)) {
|
||||
return value
|
||||
}
|
||||
if (seen.has(value)) {
|
||||
return
|
||||
}
|
||||
seen.add(value)
|
||||
|
||||
Reference in New Issue
Block a user