make ISpaPrerenderer.RenderToString
and aspnet-prerendering createServerRenderer
to generic
#12253
Labels
Milestone
Is your feature request related to a problem? Please describe.
Microsoft.AspNetCore.SpaServices.Prerendering.RenderToStringResult has one
Globals
in it, it works ok with an example application but in real life I ended up overloading it.Example:
Basic react app with ssr:
server side entry point looks like this:
AspNetCore looks like this:
Describe the solution you'd like
I would like to make
RenderToString
generic on server side:and aspnet-prerendering
createServerRenderer
generic on client side:Additional context
It just feels using global like this is not right, it would be more elegant end flexible if we can set the return type so its suits better with everyone needs.
The text was updated successfully, but these errors were encountered: