From 8a4a9f0682e876f68e3b8e731910c989d99c632f Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Fri, 2 Jul 2021 11:44:59 -0500 Subject: [PATCH] Update Blazor @key example (#22646) --- .../BlazorSample_Server/Pages/index/People.razor | 14 +++++--------- .../Pages/index/People.razor | 12 ++++-------- .../BlazorSample_Server/Pages/index/People.razor | 12 ++++-------- .../Pages/index/People.razor | 12 ++++-------- 4 files changed, 17 insertions(+), 33 deletions(-) diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorSample_Server/Pages/index/People.razor b/aspnetcore/blazor/common/samples/3.x/BlazorSample_Server/Pages/index/People.razor index 3f5978988e..8fe4c23510 100644 --- a/aspnetcore/blazor/common/samples/3.x/BlazorSample_Server/Pages/index/People.razor +++ b/aspnetcore/blazor/common/samples/3.x/BlazorSample_Server/Pages/index/People.razor @@ -1,15 +1,11 @@ -@page "/people" +@page "/people" @using System.Timers @implements IDisposable -
    - @foreach (var person in people) - { -
  1. -
    -
  2. - } -
+@foreach (var person in people) +{ +
+} @code { private Timer timer = new Timer(3000); diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorSample_WebAssembly/Pages/index/People.razor b/aspnetcore/blazor/common/samples/3.x/BlazorSample_WebAssembly/Pages/index/People.razor index 3f5978988e..6036b8799d 100644 --- a/aspnetcore/blazor/common/samples/3.x/BlazorSample_WebAssembly/Pages/index/People.razor +++ b/aspnetcore/blazor/common/samples/3.x/BlazorSample_WebAssembly/Pages/index/People.razor @@ -2,14 +2,10 @@ @using System.Timers @implements IDisposable -
    - @foreach (var person in people) - { -
  1. -
    -
  2. - } -
+@foreach (var person in people) +{ +
+} @code { private Timer timer = new Timer(3000); diff --git a/aspnetcore/blazor/common/samples/5.x/BlazorSample_Server/Pages/index/People.razor b/aspnetcore/blazor/common/samples/5.x/BlazorSample_Server/Pages/index/People.razor index fbb2832a42..445c7eaf1a 100644 --- a/aspnetcore/blazor/common/samples/5.x/BlazorSample_Server/Pages/index/People.razor +++ b/aspnetcore/blazor/common/samples/5.x/BlazorSample_Server/Pages/index/People.razor @@ -2,14 +2,10 @@ @using System.Timers @implements IDisposable -
    - @foreach (var person in people) - { -
  1. -
    -
  2. - } -
+@foreach (var person in people) +{ +
+} @code { private Timer timer = new Timer(3000); diff --git a/aspnetcore/blazor/common/samples/5.x/BlazorSample_WebAssembly/Pages/index/People.razor b/aspnetcore/blazor/common/samples/5.x/BlazorSample_WebAssembly/Pages/index/People.razor index fbb2832a42..445c7eaf1a 100644 --- a/aspnetcore/blazor/common/samples/5.x/BlazorSample_WebAssembly/Pages/index/People.razor +++ b/aspnetcore/blazor/common/samples/5.x/BlazorSample_WebAssembly/Pages/index/People.razor @@ -2,14 +2,10 @@ @using System.Timers @implements IDisposable -
    - @foreach (var person in people) - { -
  1. -
    -
  2. - } -
+@foreach (var person in people) +{ +
+} @code { private Timer timer = new Timer(3000);