vuejs / vuejs/devtools

Cannot set null value to an object in DevTools for Reactive object

Open
#809 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

Image

I'm trying to set null value to an object that I have in Pinia store, defined as:

    /** @type {{ from: string; to: string | null; } | null} */
    selectedPendingDate: null,

DevTools does not allow me to change it to null, just nothing happens. No errors in console. I've tried to click enter and also to click the icon shown in the screenshot.

Chrome extension Vue.js devtools v7.7.0.
Pinia ^3.0.1

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 issue in the Chrome Vue.js DevTools extension with a Pinia store containing a reactive object whose value is null. Start by tracing the DevTools editor path for reactive object values, then verify that setting the selected value to null updates the store without errors.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.