dotnet/aspnetcore

[Blazor] Clearer way to troubleshoot complex state transitions

Open

#51,844 建立於 2023年11月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C# (10,653 fork)batch import
Pillar: Technical DebtPriority:1area-blazorfeature-observabilityhelp wantedtask

倉庫指標

Star
 (37,933 star)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 258 個 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:

  1. We can afford an extra "if".
  2. We can find a way link it out if we need it on production builds.

/cc: @JamesNK

貢獻者指南