Hi,
I am trying to run a blazor server side component inside a razor view page.
So the razor view is this:
<
div
class
=
"wrapper"
>
@await Html.PartialAsync("_farmMenu", new PfmsWeb.Areas.Shared.ActiveMenu("PickupSequence"))
<
div
id
=
"main"
class
=
"sidebar-page main"
>
<
component
type
=
"@typeof(PfmsWeb.Components.Harvest.PickupSequence.PickupSequenceShell)"
render-mode
=
"ServerPrerendered"
/>
</
div
>
</
div
>
And the PickupSequenceShell.razor file looks like this:
<
TelerikRootComponent
>
Shell Started
<
br
/>
<
Counter
/>
</
TelerikRootComponent
>
However, when running the application the counter is not rendered at all. If I reference the counter directly from the razor view it does work. There must something in my understanding that is stopping this from working properly. It cannot be the blazor js as like I said I can run the counter directly from the razor view.
This is a very large application so I cannot easily just bring the entire thing into blazor server side, I have to host little blazor server side apps inside the razor views refactoring parts of the application as I go.
Has anyone managed to get a hybrid app working on dotnet core with controllers and views?