protected override void BuildRenderTree(RenderTreeBuilder builder) { var portal = PortalBinder?.GetPortal(PortalName); InvokeAsync( async() => { await Task.CompletedTask; portal.RenderContent(ChildContent); }); }
public void Dispose() => PortalBinder?.GetPortal(PortalName)?.RenderContent(builder => builder.AddContent(0, ""));