protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); GraphQlSubscriber.MatchUpdated += (e, match) => { var cm = CompetitionService.Matches.FirstOrDefault(m => m.Id == match.Id); if (cm != null) { cm.Scores = match.Scores; cm.IsFinished = match.IsFinished; StateHasChanged(); } }; await CompetitionService.Initialize($"{Id}/{Stage}"); Competition = CompetitionService.Competition; MatchGroup = CompetitionService.MatchGroup; }