Skip to content

Warn when mapGetters et. al. are used in the wrong property #510

@tomers

Description

@tomers

What problem does this feature solve?

I've spend couple of hours debugging an issue which caused by me mistakenly writing mapGetters under computed instead of under methods.
It would be so much helpful that the Vuex code could notify the user if one of the following happens:

  • mapState is not under computed property
  • mapGetters is not under methods property
  • mapActions is not under methods property
  • mapMutations is not under methods property

What does the proposed API look like?

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions