Skip to content

Component Data not always updating #2012

Open
@webdevnerdstuff

Description

@webdevnerdstuff

Vue devtools version

6.4.5

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-wcfjf7?file=src/components/Bar.vue

Steps to reproduce & screenshots

  1. Load example link provided.
  2. On the upper right side of the page click on "Open in New Tab"
  3. Go to the new tab.
  4. Open up Chrome Devtools
  5. Select Vue Devtools
  6. Highlight the <Bar> component.
  7. Change the radio to True/False (back and forth)
  8. Notice that the prop in the Vuejs Devtools does not update.
  9. If you click on "Force Refresh" in Vuejs Devtools, the value updates.

What is expected?

The value should update without having to Force Refresh after every time the state of the data value changes.

What is actually happening?

The data value in Vuejs Devtools does not update the value unless Force Refresh, or closing the Chrome Devtools and reopening it.

System Info

System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 13.12 GB / 64.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 19.0.1 - ~/.nvm/versions/node/v19.0.1/bin/node
    Yarn: 1.22.19 - ~/node_modules/.bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v19.0.1/bin/npm

Any additional comments?

Tested and replicated browsers:
Chrome Version 108.0.5359.124 (Official Build) (arm64)
Edge Version 108.0.1462.76 (Official build) (arm64)
Firefox Version 108.0.2 (64-bit) - could not get the open in new page working in Firefox to show the example, but my site has the same issue in this browser.

Additional
I have a similar problem in a project I am working on. Where sometimes the value updates, but it is not consistent. I have a switch component (using vuetify), and when I click on that switch, the component data in Vuejs Devtools either does not update, or it will update randomly. I can literally click the switches value back and forth from true to false and do nothing else... and the Vuejs Devtools will not update... then update a few times... then go back to not updating... and so on. This value is also emitted to other components, and the same thing occurs in those components where the data sometimes and/or does not update.

In my code, it's just not just a prop's value, it's also the changed value on different components that is using it. So it's not specific to a prop, but also in setup() it has the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions