diff --git a/en/application-dev/quick-start/arkts-state-management-overview.md b/en/application-dev/quick-start/arkts-state-management-overview.md index 440cceac78c9f5b6d4773e211f790596e5c24ed6..09db3f3183cd8156d532be741698fcc2fbfd26ef 100644 --- a/en/application-dev/quick-start/arkts-state-management-overview.md +++ b/en/application-dev/quick-start/arkts-state-management-overview.md @@ -106,6 +106,10 @@ Decorators for [managing the state owned by a component](arkts-state.md): - \@ObjectLink: An \@ObjectLink decorated variable, when used with an \@Observed decorated class of the parent component, is for two-way data synchronization in scenarios involving multiple levels of nested objects or arrays in the class. +> **NOTE** +> +> Only [\@Observed/\@ObjectLink](arkts-observed-and-objectlink.md) can observe changes of nested attributes. Other decorators can only observe changes of attributes at the first layer. For details, see the "Observed Changes and Behavior" part in each decorator section. + Decorators for [managing the state owned by an application](arkts-state.md): diff --git a/en/application-dev/quick-start/arkts-state.md b/en/application-dev/quick-start/arkts-state.md index f2d9774861a8a4180856f03ba2714df8feef9f53..6ac35e388df8471d78245fd52fa82aa8a5a7f580 100644 --- a/en/application-dev/quick-start/arkts-state.md +++ b/en/application-dev/quick-start/arkts-state.md @@ -231,7 +231,7 @@ struct MyComponent { Text(`${this.title.value}`) Button(`Click to change title`).onClick(() => { // The update of the @State decorated variable triggers the update of the component. - this.title.value = this.title.value === 'Hello ArkUI' ? 'Hello World' : 'HelloArkUI'; + this.title.value = this.title.value === 'Hello ArkUI' ? 'Hello World' : 'Hello ArkUI'; }) Button(`Click to increase count=${this.count}`).onClick(() => {