-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Custom HTML elements rendering Blazor components #42314
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.
Looks good to me, but I'll let @SteveSandersonMS have the final say.
Ah, this is interesting! I didn't realize we were going to merge the code into the core framework. I had expected "productize" only to mean "turn this experimental package into a supported package" (so it would still be a separate package, but now it's official and supported and built from the main repo). @MackinnonBuck Sorry that we weren't clear about this before. We really should not write issues without any meaningful description. Do you think there's any substantial technical requirement to merge the code into the core framework? My personal preference would be to err on the side of having this as an optional package because:
The one counterpoint would be that having it as an external package means developers have to do a gesture to add that extra package before they can use it. Personally I don't think this extra friction outweighs the other considerations. @MackinnonBuck What do you think? |
I agree with @SteveSandersonMS. I thought it was going to be a separate package. If there is JS we need to deliver to initialize Blazor, we can do so via a JS initializer, so the gesture remains "add a package" and everything should work from there. |
Ah, thanks for the clarification, @SteveSandersonMS! Sorry for the misunderstanding - I agree with your preference of having this as an optional package. |
I'll update this PR, but this may need to get pushed to preview7 since code-complete is today |
@MackinnonBuck if you put a decent PR out, @SteveSandersonMS and me can look at it tomorrow and merge it if we think it is good to go in the morning (our time). |
Thanks @javiercn. I've just moved the custom elements feature to its own package |
src/Components/CustomElements/src/Microsoft.AspNetCore.Components.CustomElements.csproj
Outdated
Show resolved
Hide resolved
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.
Signing off on behalf of @javiercn!
Custom HTML elements rendering Blazor components
This PR productizes the custom elements support package.
Description
The productized version of the support package is functionally equivalent to the original. For the next preview release, we may want to consider addressing #38369 (comment).
Validation:
Fixes #38447
Fixes #42329