Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Hunglmc opened this issue Dec 14, 2023 · 0 comments

Comments

@Hunglmc
Copy link

Hunglmc commented Dec 14, 2023



@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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant