You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we recommend you always use kebab-case for event names.
With .sync modifier you must emit event update:propertyName with propertyName camelCased. With kebab-case it won't work. So it's not always: more like always unless you emit event for .sync.
Also in the documentation Custom Events: .sync modifier I would change the example to use a property with multiple word name (now it's a single word title, which doesn't help with this problem) and/or add a note about this event name incosistency with previous recommendation on the same page ("always use kebab case").
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
The problem is that the documentation on Custom Events: Event Names states:
With
.sync
modifier you must emit eventupdate:propertyName
with propertyName camelCased. With kebab-case it won't work. So it's not always: more like always unless you emit event for.sync
.What does the proposed API look like?
You should add a note about that in Custom Events: Event Names.
Also in the documentation Custom Events:
.sync
modifier I would change the example to use a property with multiple word name (now it's a single wordtitle
, which doesn't help with this problem) and/or add a note about this event name incosistency with previous recommendation on the same page ("always use kebab case").The text was updated successfully, but these errors were encountered: