Can i choose the render mode depending what browser do the request? #52968
-
I have an webassembly app runing with .NET 7, but i have a problem with safari, simply not work in that version (don't remember what version was). I have a preview version of that project made in webassembly Server Side that has worked in that version of safari, becouse of that i wondering if i can choose de render mode depending what browser do the reques to recover the compatibility with that version of safari. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can pass @{
var renderMode= RenderMode.InteractiveWebassembly;
if(HttpContext.Headers....){
renderMode = RenderMode.InteractiveServer
}
}
...
<Routes @rendermode="renderMode" /> |
Beta Was this translation helpful? Give feedback.
Yes, you can pass
@rendermode
as an attribute to the component and provide the value dynamically based on whatever criteria you see fit.