mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] doc: remove references to updateState
This commit is contained in:
+1
-4
@@ -16,7 +16,7 @@ export class Counter extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
increment(delta) {
|
increment(delta) {
|
||||||
this.updateState({ counter: this.state.counter + delta });
|
this.state.counter += delta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -88,9 +88,6 @@ It is not called on the initial render. This is useful to get some
|
|||||||
information which are in the DOM. For example, the current position of the
|
information which are in the DOM. For example, the current position of the
|
||||||
scrollbar
|
scrollbar
|
||||||
|
|
||||||
Note that at this point, it is not safe to rerender the widget. In
|
|
||||||
particular, updateState calls should be avoided.
|
|
||||||
|
|
||||||
### patched
|
### patched
|
||||||
|
|
||||||
This hook is called whenever a component did actually update its props,
|
This hook is called whenever a component did actually update its props,
|
||||||
|
|||||||
@@ -168,9 +168,6 @@ export class Component<
|
|||||||
* It is not called on the initial render. This is useful to get some
|
* It is not called on the initial render. This is useful to get some
|
||||||
* information which are in the DOM. For example, the current position of the
|
* information which are in the DOM. For example, the current position of the
|
||||||
* scrollbar
|
* scrollbar
|
||||||
*
|
|
||||||
* Note that at this point, it is not safe to rerender the widget. In
|
|
||||||
* particular, updateState calls should be avoided.
|
|
||||||
*/
|
*/
|
||||||
willPatch() {}
|
willPatch() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user