-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add SectionName to SectionOutlet and SectionContent #47221
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
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.
Looking great so far!
…ption of SectionName and SectionId
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.
Looks great! 🎉
} | ||
|
||
_registry.AddProvider(_identifier, this, IsDefaultContent); | ||
_registeredIdentifier = SectionId; |
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.
Now that you also can use SectionName
to identify a section _registeredIdentifier
should be set to identifier
instead of SectionId
. Otherwise when using the SectionName
it would be null, and RemoveProvider isn't called when it should.
The same issue exists in SectionOutlet.
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.
@Flachdachs this is a closed PR, so could you log an issue with details around your concern?
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.
Of course. Actually my intention was to open an issue. I visited the page with the changes anonymously. It offered a "New Issue" button. But as I opened the same URL as logged in user the button was replaced with a Create Review button.
Add SectionName to SectionOutlet and SectionContent
Description
New API Proposal for Sections Support. Adding
SectionName
Fixes #46937