-
Notifications
You must be signed in to change notification settings - Fork 402
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
fix(wire): add lowercase wirecontextevent #1679
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this change. @jodarove make sure that we also do this in wire reform is we find a way to preserve the old API.
additionally, since this is only going to be use by 2 modules, we can just go with the lower case, and change it there too and completely remove the CamelCase value from the code. |
@@ -253,7 +253,7 @@ export class WireEventTarget { | |||
}); | |||
this._cmp.dispatchEvent(internalDomEvent); | |||
return false; // canceling signal since we don't want this to propagate | |||
} else if (evt.type === 'WireContextEvent') { | |||
} else if (evt.type === 'WireContextEvent' || evt.type === 'wirecontextevent') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably update the tests for this too to use the lowercase.
I plan to issue a subsequent PR to remove I'll add a test for |
Details
Accept
wirecontextevent
to avoid engine warnings about event names.WireContextEvent
can be removed after all consumers are updated towirecontextevent
.Does this PR introduce breaking changes?
No, it does not introduce breaking changes.