Skip to content

Commit cd0b2a2

Browse files
committed
Merge branch 'blazor-wasm-dotnet6' of https://github.com/ronnygunawan/js-framework-benchmark into ronnygunawan-blazor-wasm-dotnet6
2 parents dc23889 + 0c72229 commit cd0b2a2

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

frameworks/keyed/blazor-wasm/src/App.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
</div>
3333
<table class="table table-hover table-striped test-data">
3434
<tbody id="tbody">
35-
@foreach (var item in data)
36-
{
35+
<Virtualize Items="@data" Context="item">
3736
<tr @key="item.Id" class="@((item.Id == selected ? "danger" : ""))">
3837
<td class="col-md-1">@item.Id</td>
3938
<td class="col-md-4">
@@ -48,7 +47,7 @@
4847
</td>
4948
<td class="col-md-6"></td>
5049
</tr>
51-
}
50+
</Virtualize>
5251
</tbody>
5352
</table>
5453
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>

frameworks/keyed/blazor-wasm/src/_Imports.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@using Microsoft.AspNetCore.Components.Forms
44
@using Microsoft.AspNetCore.Components.Routing
55
@using Microsoft.AspNetCore.Components.Web
6+
@using Microsoft.AspNetCore.Components.Web.Virtualization
67
@using Microsoft.JSInterop
78
@using blazor_wasm
89

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
8+
<RunAOTCompilation>True</RunAOTCompilation>
59
</PropertyGroup>
610

711
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0-rc.2.20475.17" />
9-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0-rc.2.20475.17" PrivateAssets="all" />
10-
<PackageReference Include="System.Net.Http.Json" Version="5.0.0-rc.2.20475.5" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
14+
<PackageReference Include="System.Net.Http.Json" Version="6.0.0" />
1115
</ItemGroup>
1216

1317
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "5.0.100-rc.2.20479.15"
3+
"version": "6.0.100"
44
}
55
}

0 commit comments

Comments
 (0)