mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
rename updateState into setState
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ export class Counter extends Component {
|
||||
}
|
||||
|
||||
increment(delta) {
|
||||
this.updateState({ counter: this.state.counter + delta });
|
||||
this.setState({ counter: this.state.counter + delta });
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user