Skip to content

Please can you tell me why with the current code structure there is an error at @(LoadDataAsync() ) #461

@Hunglmc

Description

@Hunglmc


@inherits LayoutComponentBase
@inject Microsoft.Extensions.Localization.IStringLocalizer<MainLayout> localizer
<audio id="notification" src="/media/notification.mp3" />
<BodyElement CssClass="my-5" />
<MudDialogProvider />
<MudSnackbarProvider />
<AuthorizeView>
    <NotAuthorized>
        <CascadingValue Value="hubConnection">
            @Body
        </CascadingValue>
    </NotAuthorized>
    <Authorized>
        @(LoadDataAsync() )
        <NavMenuMobile />
        <div class="flex mt-[4.7rem] md:mt-0">
            <NavMenu />
            <CascadingValue Value="hubConnection">
                <div class="content">
                    @Body
                </div>
            </CascadingValue>
        </div>
    </Authorized>
</AuthorizeView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions