Skip to content

Incorrect string highlighting for "undefined" in Pinia state #1087

@undefined-ux

Description

@undefined-ux

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"
  })
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions