Skip to content

The wording of Store.watch in API reference is confusable #1141

@diit

Description

@diit

Version

3.0.1

Reproduction link

https://jsfiddle.net/50wL7mdz/92559/

Steps to reproduce

Attempt to use store.watch with a getter (store.getters.GETTER_HERE) as explained in docs, and shown in reproduction.

What is expected?

Handler to be called when variable updated.

What is actually happening?

Uncaught Error: [vuex] store.watch only accepts a function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions