Provide a warning if a user adds a UI event handler but the component isn't set up to render interactively
Open
Area-Razor
Area-Razor-Compiler
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
It's pretty common to forget that you need to enable an interactive render mode to use interactive features, like handling UI events. For example: https://learn.microsoft.com/en-us/answers/questions/1789186/blazor-web-app-is-not-working-for-any-events-butto. It would nice if the editor provided some sort of warning or diagnostic to let you know that the interactive feature won't work until you enable one of the interactive render modes.
Contributor guide
Assessment
This issue has not been assessed yet.