-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat: extend mouse event extension methods #1427
Conversation
@dotnet-policy-service agree |
Hey there. I'll take a look at this after Easter. |
Okay, no rush |
@egil As a side note: Just my two cents - otherwise the PR looks good so far. |
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.
Sorry, took a bit to get to this. Look's good to me.
@linkdotnet we may want to consider creating a source generator for these at some point. Lots of boilerplate code here :)
I have not through this through. IIRC, awaiting the trigger allows users to await the event handler, not the actual rendering, so it may be worthwhile to keep them. @Qwertyluk what is your scenario for using the async overloads instead of the non async ones? |
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.
Forgot to mention that you should add a section to the CHANGELOG.md file following the format we use about this change.
Based on the posts above, I assume these changes won't address my issue. |
Basically yes. The |
Although these changes don't address my initial problem, I've updated the changelog accordingly. |
Thanks @Qwertyluk. You may want to rebase your branch on main. The validate-docs check that fails should be fixed on main. |
With this in mind, I think it makes more sense to park this PR for now. We discussed this in our https://www.youtube.com/watch?v=_nStHkIujqc bUnit dev stream today, and I think we want to make these changes more generally to all trigger methods, if at all. |
I understand your decision. |
@Qwertyluk I think we will keep the current pattern for v1 as is. We have a limited time to work on bUnit, but for v2 we may reimplement the trigger methods as a source generator so all current and future triggers are automatically available. IF you want to submit a PR which solves #838 in v1 you are very welcome. |
Pull request description
Adds more Mouse Events extension methods.
Currently, it's impossible to call asynchronous overloads of mouse events without having to provide a
MouseEventArgs
parameter. In this PR, I've introduced a way to do so.PR meta checklist
main
branch for codeor targeted at
stable
branch for documentation that is live on bunit.dev.Code PR specific checklist