Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor environment component in .NET 8 versus .NET 6

$
0
0

In .NET 6, there was the environment component to check for current environment. The following code sample is taken from a vanilla Blazor Server project using .NET 6

<environment include="Staging,Production">    An error has occurred. This application may no longer respond until reloaded.</environment><environment include="Development">    An unhandled exception has occurred. See browser dev tools for details.</environment>

This native component would conditionally render the children based on if the current environment name matches whats given in the include parameter.

It does not seem like Blazor with .NET 8 has this component. Is there a new one or should I just go ahead and make my own? I can easily make my own, but if a new one exist that does this there is no reason for me to make another.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>