-
Notifications
You must be signed in to change notification settings - Fork 39
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
Melody compiler should warn for mounts with no keys (no 'as') #8
Comments
@jamesb3ll @pago Should all mount decelerations without I think, we can check this here
|
Hey, @ayusharma It should be for all of them AFAIK. It can be problematic in case of for loops, we are planning to enforce it. |
It's better to throw an error in that condition. Please let me know the error format. I am thinking of this.
|
Has been fixed by @ayusharma and will be part of Melody 1.2.0 |
The compiler should warn if a mount has no key:
{% mount 'component.js' %}
Should be:
{% mount 'component.js' as 'key' %}
Especially in for-loops mounts should have keys.
Also update the documentation and emphasise on this.
The text was updated successfully, but these errors were encountered: