Ends in:
7 DAYS
12 HRS
29 MIN
23 SEC
Ends in:
7 D
12 H
29 M
23 S
Open Closed

Missing title and breadcrumb on dashboard #6631


User avatar
0
ageiter created
  • ABP Framework version: v8.0.2
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

Steps to reproduce the issue:

Create a new Blazor Server project (with ABP Suite), set the TopMenu layout and start it. Log in and click on the dashboard. -> Breadcrumbs & title missing

Select refresh (or reload page with F5) -> Now it looks correct

Workaround for this problem:

  • You can either call a service method (e.g. await MyAppService.GetListAsync())
  • Or add the following:
    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        await base.OnAfterRenderAsync(firstRender);

        if (firstRender)
        {
            await InvokeAsync(StateHasChanged);
        }
    }

The problem has been known for a long time, but unfortunately it has never been fixed... #4551

Thanks for fixing it. Adrian


4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will update the template. thank you.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It will fixed in 8.0.3 patch version

  • User Avatar
    0
    ageiter created

    Thank you.

    If it is possible to fix the cause of the problem, that would of course be much better than adding this workaround to the template ;-) After all, this not only affects the dashboard, but also custom pages that do not make a service call during initialization.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Should always call SetBreadcrumbsAsync in the OnAfterRenderAsync method.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs#L224

    I updated all modules and abp suite

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06