Skip to content

Should vuex mapState print error message #1093

Closed
@balazser

Description

@balazser

What problem does this feature solve?

I got the following error: Uncaught TypeError: Cannot convert undefined or null to object
then realized I invoked the ...mapState(NSP_CONCEPT) without a second parameter.
It took some time while I figured out, would have been great, if there is a condition to don't fail or print out a message.

What does the proposed API look like?

print a message, or put a condition into the function

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions