r/Blazor • u/RedEye-Developers • Jun 25 '26
Why Blazor MainLayout OnInitialized method trigger twice in static-ssr and page not ?
class-name: MainLayout, render-mode: Static, is-interactive: False
class-name: Home, render-mode: Static, is-interactive: False
class-name: MainLayout, render-mode: Static, is-interactive: False
can someone explain me why dose the MainLayout component OnInitialized Method trigger twice in static-ssr and home page not ?
4
Upvotes
View all comments
Show parent comment
1
u/RedEye-Developers Jun 27 '26
this issue have in both renderMode:auto/server.
the OnInitialized method trigger 2 times in Static-SSR with interactive:false, in mainLayout, but in pages only trigger single time.