Pinia devtools will not call `setupDevtoolsPlugin` until `useStore` is called
Author: alexzhang1030Created Nov 1, 2024Updated Aug 31, 2026
Labelscontribution welcome🧑💻 pkg:devtools
Reproduction
N/A
Steps to reproduce the bug
There is a related issue https://github.com/vuejs/devtools/issues/672
The reproduction steps are there.
Expected behavior
Call setupDevtoolsPlugin immediately instead of calling it after useStore. otherwise devtools cannot read settings at mounted.
Actual behavior
Call setupDevtoolsPlugin after someone calls useStore
Additional information
No response
Source: vuejs/pinia