-
Notifications
You must be signed in to change notification settings - Fork 434
Using props in initial data? #41
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
Comments
Thanks for reporting this. |
Here's an example repo. |
The cause seems to be missing inheritance of Vue class. Adding |
1 task
A warning message will be printed on v4.4.0 or later. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the example in README there's:
If I copy the full example into a component and use it,
helloMsg
is always undefined (even when the prop is set to a string). Should this be the case*? It works in other methods and such, but not in initial data.*The wording in that comment makes it seem like this should not be undefined. :)
The text was updated successfully, but these errors were encountered: