devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Cannot set null value to an object in DevTools for Pinia store

Open twisterniq opened this issue 11 months ago • 1 comments

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

twisterniq avatar Feb 24 '25 12:02 twisterniq

It seems like it just has to be a Reactive object, it doesn't matter if it's in Pinia or not.

Error in console:

Image

Details

Image

twisterniq avatar Jun 11 '25 08:06 twisterniq