vuejs / vuejs/devtools

Incorrect string highlighting for "undefined" in Pinia state

Open
#1,087 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

In Vue Devtools 7.7.7, when a Pinia store contains a string value "undefined", it is rendered as the actual undefined value instead of a string.

Image

Minimal Demo:

const useTestStore = defineStore('test', {
  state: () => ({
    value: "undefined"
  })
})

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the minimal Pinia store demo in Vue Devtools 7.7.7 and inspect where state values are rendered or highlighted. Verify that the string "undefined" remains a string while an actual undefined value is still represented as undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.