egil / Htmxor

Supercharges Blazor static server side rendering (SSR) by seamlessly integrating the Htmx.org frontend library.
MIT License
124 stars 13 forks source link

HtmxRazorComponentEndpointInvoker - custom endpoint invoker #9

Closed egil closed 5 months ago

egil commented 8 months ago

There may be a need for a custom RazorComponentEndpointInvoker which supports requests initiated by Htmx.

Whatever type is registered as the IRazorComponentEndpointInvoker in the app is used to invoke Blazor endpoints by RazorComponentEndpointFactory. If that endpoint Htmxor keeps using the builtin RazorComponentEndpointFactory a custom IRazorComponentEndpointInvoker should probably get the other registered RazorComponentEndpointInvoker and call that when a request is a non HX request.

egil commented 5 months ago

done