dotnet / dotnet/roslyn

Provide a warning if a user adds a UI event handler but the component isn't set up to render interactively

Open
#85,599 4 comments 0 reactions 1 assignee Claimed by @chsienki View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.