Skip to content

Commit 6905dbe

Browse files
authored
[Blazor] Use DynamicDependency to preserve KeyValuePair for WebAssembly trimming (#63099)
1 parent e9d6075 commit 6905dbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Components/WebAssembly/WebAssembly/src/Services/DefaultWebAssemblyJSRuntime.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ internal sealed partial class DefaultWebAssemblyJSRuntime : WebAssemblyJSRuntime
3131
[DynamicDependency(nameof(BeginInvokeDotNet))]
3232
[DynamicDependency(nameof(ReceiveByteArrayFromJS))]
3333
[DynamicDependency(nameof(UpdateRootComponentsCore))]
34+
[DynamicDependency(JsonSerialized, typeof(KeyValuePair<,>))]
3435
private DefaultWebAssemblyJSRuntime()
3536
{
3637
ElementReferenceContext = new WebElementReferenceContext(this);

0 commit comments

Comments
 (0)