Open javiercn opened 1 year ago
Thanks for contacting us.
We're moving this issue to the .NET 9 Planning
milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
@javiercn
Below is a list of possible information to log, would you mind letting me know if sufficient and if there's anything else you'd like to see.
1) Logging the start of parameter setting (Component name included)
2) Logging any errors thrown when trying to set parameters (Component name included)
3) Logging if task.isFaulted
(Component name included)
4) Logging if task.IsCancelled
(Component name included)
5) Logging if parameters
were set successfully (Component name included)
@javiercn
Below is a list of possible information to log, would you mind letting me know if sufficient and if there's anything else you'd like to see.
- Logging the start of parameter setting (Component name included)
- Logging any errors thrown when trying to set parameters (Component name included)
- Logging if
task.isFaulted
(Component name included)- Logging if
task.IsCancelled
(Component name included)- Logging if
parameters
were set successfully (Component name included)
Hey @javiercn, if you wouldn't mind letting me know if I'm on the right track, many thanks.
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