Improvement to Lifecycle Events by having an overridable method called BeforeRender
Open
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
Assessment
This issue has not been assessed yet.