-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Ref accessed via Object.prototype.hasOwnProperty.call
isn't traced in computed
#9177
Comments
Object.prototype.hasOwnProperty.call
isn't traced in computedObject.prototype.hasOwnProperty.call
isn't traced in computed
Is there anyway to tell the runtime tracer that ALL of the property, including NEW ones are used in |
before
after
You can directly use |
Thanks!
|
You can see this PR for some detailed information。#2621 |
Thank you @chenfan0. Now I understand why this doesn't work.
|
Vue version
3.3.4
Link to minimal reproduction
https://play.vuejs.org/#eNp9VNtu4jAQ/ZVRXpJsUYD2jYZqL6q0u9pdqm3fcFWFxICpsS1fKBXKv+/YIRC2tDyQeObM8ZnjcXbRF6WyjaPRKMpNqZmyYKh1CnghFmMSWUOiGyLYWkltYQeazntQyrVyllZQw1zLNcRIEBNBRCmFsVCx0sLYQ5MdEQDxMB5dElGn1y2iJfj+8PsXIttlkqQwvoFQ5EmyTcEdxSoATi0SetrpYwjMpU58kGFocI2PHIaDAb5dXABLAwUAm0Myma0oUiktrbSvimbLwkxexJ2Wimr7mpUF58lxtx6wzMp7q5lYJGmaNmr8D7fPlDPLDnjaxT4C7gyfvAzfqS+p/SP8YbHTInCsJBNJ3IvTE0tQX9DzVEonWvsuj/miqp5aDGY7Tu0bLIxhC3HSyV769JS7yXaFj2AYhDayz6HhYgxDzNbHI1zigNB3JHUcwsNHY/bVQETeb8YMhwoXlq4VLyzFFUBesU14AdjtPEUdrMPETB/i3dF5m89nzlop4HPJWfmM89u1DScZl4f+8n4Dfq/0vw6xuomcJ8j7jfq8f+gp6uH1QbfmbJGtjBR4x4I7SI1NME71RFmGbpJo1J4VKuZcvvwMMavxFNt4uaTl85n4ymx9jER3mhqqN5REh5wt9ILaJn17/4du8f2QXMvKcUR/kPxLjeTOa2xgX52oUHYHF9T+CF8HnKUHc7u1VJi2KS80TFbAkwi/E98+aP0o9yq72l+dOqr/AW3XiqU=
Steps to reproduce
computed
, callObject.prototype.hasOwnProperty.call
computed
isn't updated.What is expected?
add_property
also updates thecomputed
What is actually happening?
only
change_property
doesSystem Info
No response
Any additional comments?
The "create issue" button in https://new-issue.vuejs.org/ isn't working; github is asking me to filling the issue template AGAIN.
The text was updated successfully, but these errors were encountered: