Skip to content

[Blazor] Analyzer should check that Element reference instances are only ever read within OnAfterRenderAsyncΒ #63247

@javiercn

Description

@javiercn

You shouldn't be using ElementReference fields or properties elsewhere in the lifecycle of a component. Doing so might result in errors caused by accessing stale references or non existent ones.

Metadata

Metadata

Assignees

Labels

analyzerIndicates an issue which is related to analyzer experiencearea-blazorIncludes: Blazor, Razor Components

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions