From d775a7ffc1f393b1a0be21f042667836ef9ab656 Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Fri, 13 May 2022 15:30:36 +0800 Subject: [PATCH] wangyongfei6@huawei.com modify sensitive words Signed-off-by: yfwang6 Change-Id: I2462f6df3e14ed511fe0b4fec9813f0d1b8eb84a --- compiler/sample/pages/testcases/stateArrayReverse.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/sample/pages/testcases/stateArrayReverse.ets b/compiler/sample/pages/testcases/stateArrayReverse.ets index 8824e48..68c7007 100644 --- a/compiler/sample/pages/testcases/stateArrayReverse.ets +++ b/compiler/sample/pages/testcases/stateArrayReverse.ets @@ -22,8 +22,8 @@ The expectation is that TextElement objects are created only once, then put to new order. For this to work, each time a TextComponent is created it needs to be assigned the same unique key. - This is why anArray is not a simple array of strings. strings are not uniquely identifyable - (in SwiftUI). Therefore, the app needs to provide a unique id for each array item. + This is why anArray is not a simple array of strings. strings are not uniquely identifyable. + Therefore, the app needs to provide a unique id for each array item. We do so by making each array item an object with a unique id. this id should be used as the 'key' argument when creating a Text.