Skip to content

Blazer: The lifecycle function in the page is activated twice on OnInitializedAsync #14977

Closed
@AutismPatient

Description

@AutismPatient

I want to know why it activated twice to execute the twice load method, which confused me, I was using the official template code!
protected override async Task OnInitializedAsync() { forecasts = await ForecastService.GetForecastAsync(DateTime.Now); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions