We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd79d72 commit a2e2404Copy full SHA for a2e2404
src/Components/Components/src/Auth/AuthorizeRouteView.cs
@@ -36,7 +36,7 @@ public AuthorizeRouteView()
36
// Cache the rendering delegates so that we only construct new closure instances
37
// when they are actually used (e.g., we never prepare a RenderFragment bound to
38
// the NotAuthorized content except when you are displaying that particular state)
39
- var renderBaseRouteViewDelegate = (RenderFragment)base.Render;
+ RenderFragment renderBaseRouteViewDelegate = builder => base.Render(builder);
40
_renderAuthorizedDelegate = authenticateState => renderBaseRouteViewDelegate;
41
_renderNotAuthorizedDelegate = authenticationState => builder => RenderNotAuthorizedInDefaultLayout(builder, authenticationState);
42
_renderAuthorizingDelegate = RenderAuthorizingInDefaultLayout;
0 commit comments