Skip to content

[Blazor] Analyzer to warn about JSInterop calls not wrapped in a try catch block #67306

Description

@javiercn

JS interop might fail in prerendering, interactive server and webview for multiple reasons including the browser being disconnected from the page. We should have an analyzer that recommends wrapping the calls inside a try..catch and react accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerIndicates an issue which is related to analyzer experiencearea-blazorIncludes: Blazor, Razor Components

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions