-
-
Notifications
You must be signed in to change notification settings - Fork 363
chore(Button): remove Task.Run in event callback #5891
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
Conversation
* fix(Button):修复WPF Blazor模式下Button组件IsAsync不工作 * chore: bump version beta03 Co-Authored-By: zglp <[email protected]> --------- Co-authored-by: zglp <[email protected]> Co-authored-by: Argo Zhang <[email protected]> Co-authored-by: zglp <[email protected]> # Conflicts: # src/BootstrapBlazor/BootstrapBlazor.csproj # src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.cs
Reviewer's Guide by SourceryThis pull request removes the use of Sequence diagram for Button click eventsequenceDiagram
participant Button
participant Handler
Button->>Handler: HandlerClick()
activate Handler
Handler-->>Button: Task
deactivate Handler
Sequence diagram for PopConfirmButton confirm eventsequenceDiagram
participant PopConfirmButton
participant OnConfirm
PopConfirmButton->>OnConfirm: OnConfirm()
activate OnConfirm
OnConfirm-->>PopConfirmButton: Task
deactivate OnConfirm
Sequence diagram for CountButton click eventsequenceDiagram
participant CountButton
participant Handler
CountButton->>Handler: HandlerClick()
activate Handler
Handler-->>CountButton: Task
deactivate Handler
CountButton->>CountButton: UpdateCount()
activate CountButton
CountButton-->>CountButton: Task
deactivate CountButton
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ArgoZhang - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment explaining why
Task.Runwas removed from the event callbacks.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5891 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 661 661
Lines 30430 30421 -9
Branches 4323 4321 -2
=========================================
- Hits 30430 30421 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5863
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Remove unnecessary Task.Run usage in button component event callbacks
Bug Fixes:
Enhancements:
Chores: