Skip to content
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

The internal value of inspected component will not be updated if the "updated hook" is not triggered #2064

Closed
Azurewarth0920 opened this issue May 8, 2023 · 0 comments · Fixed by #2065

Comments

@Azurewarth0920
Copy link
Contributor

Vue devtools version

6.5.0

Link to minimal reproduction

https://play.vuejs.org/#eNqNUU1vhCAQ/SsTL3aT3fVObJMee2rvtQfUIaWLQBDNboz/vQMoe2iblBgzbz4e7w1L8WzteZ6wYEU9dk5a/9RoOVjjPLx4HEA4M0B5rgIIjWUuL+BQwLp1pBJAo/Eayz0KPilqC9nO0IxG7UeWEhDZQ7Qew7/nnj8c9ppDPzm9IwAlR8/gPWMAzQdkUApjyjifzszVRGnB1Yg5nS4I5+d8y91f83n8I0VrFNto+uoqr4oA+bCKeyQEUPdyjgGFcX/zSRj32BQyACOilaYAFvCWDvCCtw2dgzRKVYmvSoR1la8pjsX+GPdXg5FWZqmR1i41vjljx4foN3AyeG2/sPOk/vBv+Yq3qDawLJEnaoN1BUbvHJuktpMHf7NI8rtP7C6tuZL6+TSYHtXuKS42mwq27uy/WVy/ASlo1JU=

Steps to reproduce & screenshots

  • Inspect the parent component and expand the item.
  • Check the checkbox and the value is not modified.
Screen.Recording.2023-05-08.at.23.15.53.mov

What is expected?

The value is as same as the check status of the checkbox.

What is actually happening?

If the life cycle hook "updated" of the parent component is not triggered, the status of the inspected component will not be sent to the frontend.

System Info

System:
    OS: macOS 13.3.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 4.80 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.14.2 - ~/.nodenv/versions/16.14.2/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.5.0 - ~/.nodenv/versions/16.14.2/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Safari: 16.4

Any additional comments?

I think we can update the status of the inspected component recklessly to ensure that the status is right.

And as the updating function is throttled, it won't cause the performance issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant