Skip to content

Pinia devtools will not call setupDevtoolsPlugin until useStore is called #2818

@alexzhang1030

Description

@alexzhang1030
Member

Reproduction

N/A

Steps to reproduce the bug

There is a related issue vuejs/devtools#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

Activity

changed the title [-]Pinia devtools will not register until calls `useStore`[/-] [+]Pinia devtools will not `setupDevtoolsPlugin` until calls `useStore`[/+] on Nov 1, 2024
changed the title [-]Pinia devtools will not `setupDevtoolsPlugin` until calls `useStore`[/-] [+]Pinia devtools will not call `setupDevtoolsPlugin` until `useStore` is called[/+] on Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @posva@alexzhang1030

      Issue actions

        Pinia devtools will not call `setupDevtoolsPlugin` until `useStore` is called · Issue #2818 · vuejs/pinia