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

chore(warn): fix camelCase event tip #12318

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

cutiful
Copy link

@cutiful cutiful commented Oct 9, 2021

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe: fix a console warning

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
Demo of the currently incorrect warning. I emitted SomeEvent, the handler is registered for someevent, not the other way round. (The code was probably copied from the prop warning in 0bb529a, but that one works a bit different.)

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Can you add one of multiple unit tests?

@posva posva changed the title polish(core): fix camelCase event tip chore(warn): fix camelCase event tip Oct 10, 2021
Correctly state which event was emitted and which there is a listener
for, as they were conflated before.
Test for correct order of what is expected and what was passed.
@cutiful cutiful force-pushed the fix-camelcase-event-tip branch from 6c32b3c to 3687669 Compare October 10, 2021 13:49
@cutiful cutiful requested a review from posva October 10, 2021 13:53
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.

2 participants