Skip to content

Complex framework types for JS interop #31421

@guardrex

Description

@guardrex

Description

Per dotnet/aspnetcore#52947 (comment) ...

Refrain from using complex framework types, such as <xref:System.Collections.Generic.KeyValuePair>, when performing JS interop as those types might be trimmed by default. Create your own custom types instead.

Also place the remark in the JS interop overview.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/configure-trimmer?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/host-and-deploy/configure-trimmer.md

Document ID

1487b5e7-a40c-d757-c530-d0e4017f189e

Article author

@guardrex

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions