Lines Matching refs:variable
4 An \@State decorated variable, also called a state variable, is a variable that holds the state pro…
19 An @State decorated variable, like all other decorated variables in the declarative paradigm, are p…
23 …variable to an \@Prop decorated variable in a child component, and a two-way synchronization relat…
25 - The lifecycle of the \@State decorated variable is the same as that of its owning custom componen…
33 | Synchronization type | Does not synchronize with any type of variable in the parent comp…
34 | Allowed variable types| Object, class, string, number, Boolean, enum, and array of these types.<b…
35 | Initial value for the decorated variable| Local initialization is required. …
42 …on is overwritten. Otherwise, the initial value of the @State decorated variable is used.<br>Suppo…
43 …n \@State decorated variable can be used to initialize a regular variable or \@State, \@Link, \@Pr…
58 - When the decorated variable is of the Boolean, string, or number type, its value change can be ob…
67 - When the decorated variable is of the class or Object type, its value change and value changes of…
89 Use \@State to decorate a variable of the Model class object type.
96 Assign a value to the \@State decorated variable.
103 Assign a value to a property of the \@State decorated variable.
116 - When the decorated variable is of the array type, the addition, deletion, and updates of array it…
128 Use \@State to decorate a variable of the Model class array type.
170 - When the decorated variable is of the Date type, the overall value assignment of the **Date** obj…
210 - When the decorated variable is **Map**, value changes of **Map** can be observed. In addition, yo…
212 - When the decorated variable is **Set**, value changes of **Set** can be observed. In addition, yo…
216 - When a state variable is changed, the framework searches for components that depend on this state…
220 - Components or UI descriptions irrelevant to the state variable are not re-rendered, thereby imple…
243 …le, \@State is used to decorate the **count** variable of the simple type, turning it into a state…
308 … // The update of the @State decorated variable triggers the update of the <Text> component.
316 … // The update of the @State decorated variable triggers the update of the <Button> component.
328 In the preceding example, the initialization mechanism of the \@State variable is as follows:
356 In this example, the **message** variable is of the Map<number, string> type. When the button is cl…
401 In this example, the **message** variable is of the Set\<number\> type. When the button is clicked,…
472 …changeCoverUrl** points to **PlayDetailViewModel** instead of the state variable decorated by \@St…
513 To fix the issue, pass **this.vm** and call the attribute of the decorated state variable to assign…
557 In state management, classes are wrapped with a proxy. When a member variable of a class is changed…
614 In the preceding example, the state variable is changed in the constructor. After the button is cli…
664 In the preceding example, the state variable is changed through a method of the class. After the bu…
666 ### A state variable causes a re-render of merely the bound UI component.
824 …ton('change to self')**, the same class constant is assigned to a state variable of the **Class** …
921 …arget** is used to obtain the original value of the corresponding state variable before value chan…
960 If the framework identifies that the state variable is changed in **build()**, an error log is gene…
963 FIX THIS APPLICATION ERROR: @Component 'Index'[4]: State variable 'count' has changed during render…
1003 In the **build** method, when the variable decorated by \@State is of the object type and is called…
1049 …s.balloon** to re-render the UI by assigning a value to the variable and then calling the variable.