protected override async Task OnParametersSetAsync() { try { if (Post is null) { return; } if (Loaded) { return; } if (OriginalPostImages?.Count < 1) { await GetPostImagesAsync(); Loaded = true; } } catch (Exception e) { await OnLoadingError.InvokeAsync(e); } }
protected override async Task OnInitializedAsync() { try { CategoriesList = await CategoriesLogic.GetCategoriesAsync(); } catch (Exception e) { await OnLoadingError.InvokeAsync(e); } }
protected override async Task OnParametersSetAsync() { if (Post is null) { return; } if (Loaded) { return; } try { await GetPostCategoriesAsync(); Loaded = true; } catch (Exception e) { await OnLoadingError.InvokeAsync(e); } }