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
Post a Comment