Hi @ScottDurrett-9763 ,
You could go to _Host.cshtml
and change render-mode="ServerPrerendered"
to render-mode="Server"
, and it would be called only once.
Reference:
- https://learn.microsoft.com/en-us/aspnet/core/blazor/components/lifecycle?view=aspnetcore-3.1#stateful-reconnection-after-prerendering
- https://stackoverflow.com/a/58077021/11398810
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Rena