You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Old way of mapping (prior to Preview8): endpoints.MapBlazorHub();
New way on generated sample Server Side App (since Preview8): endpoints.MapBlazorHub(selector: "app");
New way creates the index page via MainLayout.razor twice.
You can confirm by placing breakpoint on OnInitialized() in MainLayout file.
The app appears to work normally, but all code on the default page is executed twice. This includes DI objects used by the default page (such as DBContexts)
The text was updated successfully, but these errors were encountered:
Thanks for contacting us, @MarkTMcp.
The behavior you're observing is by-design. You can disable pre-rendering and the OnInitialized will be called once only.
Old way of mapping (prior to Preview8): endpoints.MapBlazorHub();
New way on generated sample Server Side App (since Preview8): endpoints.MapBlazorHub(selector: "app");
New way creates the index page via MainLayout.razor twice.
You can confirm by placing breakpoint on OnInitialized() in MainLayout file.
The app appears to work normally, but all code on the default page is executed twice. This includes DI objects used by the default page (such as DBContexts)
The text was updated successfully, but these errors were encountered: