A component can have either or both a [Route] and [HxRoute] attribute. A goal for Htmxor should be to change as little as possible of the normal behavior of Blazor, so whether to use the existing mapping and endpoint handling for components with only the [Route] attribute may be an option.
Should Htmxor completely replace the existing discovery and mapping so it has complete control?
Or should it allow the existing MapRazorComponents calls to do their thing and perhaps use modify endpoint discovery and registrations via the RazorComponentsEndpointConventionBuilder which is returned from MapRazorComponents?
A component can have either or both a
[Route]
and[HxRoute]
attribute. A goal for Htmxor should be to change as little as possible of the normal behavior of Blazor, so whether to use the existing mapping and endpoint handling for components with only the [Route] attribute may be an option.Currently, it seems components with
[Route]
attribute is discovered like this: https://source.dot.net/#Microsoft.AspNetCore.Components.Endpoints/Discovery/IRazorComponentApplication.cs,20This is used from here: https://source.dot.net/#Microsoft.AspNetCore.Components.Endpoints/Builder/RazorComponentsEndpointRouteBuilderExtensions.cs,36
Questions:
MapRazorComponents
calls to do their thing and perhaps use modify endpoint discovery and registrations via theRazorComponentsEndpointConventionBuilder
which is returned fromMapRazorComponents
?