Improve checks determining the JSCallResultType for JS interop calls. #25624
Labels
area-blazor
Includes: Blazor, Razor Components
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
Milestone
Summary
Currently, trying to create an
IJSObjectReference
instance by callingIJSRuntime.InvokeAsync<JSObjectReference>(...)
instead ofIJSRuntime.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.
The text was updated successfully, but these errors were encountered: