dotnet / dotnet/aspnetcore

Improvement to Lifecycle Events by having an overridable method called BeforeRender

Open
#29,798 24 comments 0 reactions 0 assignees View on GitHub
affected-few area-blazor enhancement feature-blazor-component-model feature-rendering severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

There are cases where there can be code that a person wants ran before the rendering just like there is AfterRender.

The purpose would be if a person wants to use code behind and run some methods to prepare for rendering. I have found many cases where StateHasChanged was called but did not invoke propertyset but the code should run in the code behind instead of razor file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.