Skip to content

Improve checks determining the JSCallResultType for JS interop calls. #25624

@MackinnonBuck

Description

@MackinnonBuck

Summary

Currently, trying to create an IJSObjectReference instance by calling IJSRuntime.InvokeAsync<JSObjectReference>(...) instead of IJSRuntime.InvokeAsync<IJSObjectReference>(...) results in a JSON deserialization error. This is by design, but the error could be caught earlier and a more useful error message could be provided.

Additional context

@SteveSandersonMS had a suggestion for this here.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions