Donate

Cascading Parameter Is Always Null Or Is Not Working In Blazor .NET 8

Hello,

When working with cascading parameters in Blazor Web Application in .NET 8, I encountered an issue that this always returns null even if the logic is in place. After doing some research, I found the solution here which is to set the interactive mode attribute of Routes component in App.razor component.
Routes component in App.razor without the interactive mode.
<body>
    <Routes />
    <script src="_framework/blazor.web.js"></script>
</body>
Routes component in App.razor the the interactive mode set.
<body>
    <Routes @rendermode="InteractiveServer"/>
    <script src="_framework/blazor.web.js"></script>
</body>
I just hope there will be a better solution for this issue in the near future.

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.

Invalid nested tag div found, expected closing tag input