Skip to content

Data refs that start with "use" are not visible in Vue dev tools #1971

@gogo-rulez

Description

@gogo-rulez

Vue devtools version

6.4.5

Link to minimal reproduction

https://github.com/gogo-rulez/vue-devtools-bug

Steps to reproduce & screenshots

  • npm install
  • npm run dev
  • open in browser
  • open vue devtools
  • the refs starting with "use" are not listed in the setup tab of App.vue

What is expected?

To see all of the refs defined in App.vue file

What is actually happening?

Only refs which do not start with "use" are visible in the devtools setup tab

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 1.90 GB / 15.73 GB
Binaries:
    Node: 16.15.0 - ~\nvm\nodejs\bin\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.2 - ~\nvm\nodejs\bin\npm.CMD
Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (106.0.1370.47)
    Internet Explorer: 11.0.22000.120

Any additional comments?

We went on and downloaded the devtools source code to look for the cause.
The only thing that we could find is in this file
/packages/app-backend-vue3/src/components/data.ts
inside function processSetupState the startsWith method is used like so !key.startsWith('use)

this may or may not be the thing that is causing the problem

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