11.2 C
New York
Sunday, October 20, 2024

c# – MAUI Hybrid web page dangle


I’ve a MAUI app that appears to hold when operating on a tool delivered by way of take a look at flight, however works completely advantageous within the simulator.

It’s a MAUI Hybrid utilizing Blazor to open a web page. It masses the web page, begins a loading spinner, retrives some information and updates the view and closes the spinner.

However the view would not replace and the spinner would not cease.

I’ve added some easy logging in Sentry to examine it’s executing all of the code and it does.

I do know the spinner works as I exploit it in different pages.

No hidden crashes in Sentry that I can see.

I’ve bought no thought how you can even get extra details about this situation! Any recommendation?

OnAfterRenderAsync Methodology

protected override async Job OnAfterRenderAsync(bool firstRender)
    {
        if(firstRender)
        {
            SentrySdk.CaptureMessage("Began web page load");
            Matches = DashboardAPI.GetMyCompetitionMatches().End result;

            SentrySdk.CaptureMessage("Retrieved matches");

            if(Matches.Depend() == 0)
            {
                SentrySdk.CaptureMessage("Matches discovered: 0");
                _spinnerService.Conceal(); 
                StateHasChanged();
            }
            else
            {
                Leagues = Matches
                    .Choose(i => new League {
                        LeagueName = i.LeagueName,
                        AvatarFileName = i.LeagueAvatarFileName,
                        CustomDomain = i.LeagueCustomDomain,
                        Id = i.LeagueId,
                        Path = i.LeaguePath
                    })
                    .DistinctBy(i => i.LeagueName)
                    .ToList();

                SentrySdk.CaptureMessage("Obtained the leagues");

                BookableVenues = new Listing();
                foreach(var league in Leagues)
                {
                    var venues = DashboardAPI.GetBookableVenues(league.Id).End result;
                    BookableVenues.AddRange(venues);
                }
            }

            SentrySdk.CaptureMessage("Finoshed web page load about to set off state change");
            _spinnerService.Conceal();  
            //StateHasChanged();
            SentrySdk.CaptureMessage("Hidden spinner");
        }       
        _spinnerService.Conceal();            
    } 

Challenge File




    
        net8.0-android;net8.0-ios;net8.0-maccatalyst
        $(TargetFrameworks);net8.0-windows10.0.19041.0
        
        

        
        

        Exe
        RackEmAppMobile
        true
        true
        allow
        false
        allow

        
        RackEmApp

        
        com.rackemapp.mobileapp

        
        1.4.7
        77

        14.2
        14.0
        21.0
        10.0.17763.0
        10.0.17763.0
        6.5
    

    
        -all 
        True
        False
    
    
        
        

        
        

        
        
        

        
        

        
        
    


    
  

    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    

    
      
    



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles