-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(runtime-core): support deep: false when watch reactive #9928
Conversation
Size ReportBundles
Usages
|
CodSpeed Performance ReportMerging #9928 will not alter performanceComparing Summary
|
f459a71
to
2bab130
Compare
@@ -464,3 +465,23 @@ export function traverse(value: unknown, seen?: Set<unknown>) { | |||
} | |||
return value | |||
} | |||
|
|||
export function shallowTraverse(value: unknown) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be able to reuse traverse
by adding a second argument:
traverse(value: unknown, shallow = false, seen?: Set<unknown>)
I added a |
@Alfred-Skyblue I like the depth idea, but it is a feature so I refactored this PR to use your depth-based |
fix #9916