Skip to content

Changed a recommendation for custom events name casing #754

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

Merged
merged 2 commits into from
Dec 25, 2020

Conversation

NataliaTepluhina
Copy link
Member

Description of Problem

Out current recommendation for custom events name casing are outdated (since emits can have an object syntax and in this case, camelCased event name is more natural)

Proposed Solution

Change recommendation for events name casing to make it consistent with props

Additional Information

Close #656

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I've made one suggestion but feel free to ignore it if you prefer the current wording.

I'm surprised there isn't an entry for this in the Style Guide.

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
@NataliaTepluhina
Copy link
Member Author

@skirtles-code thank you for the suggestion! I better trust a native speaker on this matter 😅

I believe we should add the entry to styleguide, next to props section, I will add one there

@NataliaTepluhina NataliaTepluhina merged commit 2706494 into master Dec 25, 2020
@NataliaTepluhina NataliaTepluhina deleted the change-events-casing branch February 24, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

camelCase events can be listened to in the kebab-case
2 participants