Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should vuex mapState print error message #1093

Closed
balazser opened this issue Dec 15, 2017 · 1 comment
Closed

Should vuex mapState print error message #1093

balazser opened this issue Dec 15, 2017 · 1 comment
Labels
enhancement New feature or request

Comments

@balazser
Copy link

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

@ktsn ktsn added the enhancement New feature or request label Dec 28, 2017
EdyHartono pushed a commit to EdyHartono/vuex that referenced this issue Jun 3, 2018
@ktsn
Copy link
Member

ktsn commented Nov 10, 2019

fixed via #1297

@ktsn ktsn closed this as completed Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants