dotnet/aspnetcore
[Blazor] Clearer way to troubleshoot complex state transitions
开放
#51,844 创建于 2023年11月3日
Pillar: Technical DebtPriority:1area-blazorfeature-observabilityhelp wantedtask
仓库指标
- 星标
- (37,933 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
This came up as part of a discussion.
In complex apps is hard to detect state transitions that might happen during a brief period of time and cause issues. We could consider adding additional logging https://github.com/dotnet/aspnetcore/blob/main/src/Components/Components/src/Rendering/ComponentState.cs#L230-L244 to avoid such issues in the future.
We discuss this in the initial days of Blazor and we were concerned about the perf, but I think that the perf characteristics have changed enough that:
- We can afford an extra "if".
- We can find a way link it out if we need it on production builds.
/cc: @JamesNK