-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MudBreadcrumbs: Convert BreadcrumbItem to record type #10116
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10116 +/- ##
=======================================
Coverage 91.17% 91.18%
=======================================
Files 411 411
Lines 12481 12483 +2
Branches 2429 2432 +3
=======================================
+ Hits 11380 11382 +2
Misses 557 557
Partials 544 544 ☔ View full report in Codecov by Sentry. |
|
Wouldn't it better to make just public record BreadcrumbItem(string Text, string? Href, bool Disabled = false, string? Icon = null);? |
That's a breaking change if you reference the variable name in the constructor: |
That's very interesting, I thought the generated code would lowercase it? But seems like I'm wrong No idea why would they do that, considering that record is just a "superstructure" over class. |
henon
left a comment
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.
Breaking change? What to write in the migration guide?
|
I don't think it's a breaking change either? The properties were readonly already, all you added is that with record it implements |
|
@ScarletKuro @henon Breaks inheritance because it's no longer a class.
Migration guide could say
|
|
Added to v8.0.0 Migration Guide |
Description
How Has This Been Tested?
Type of Changes
Checklist
dev).