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:
+2
-2
@@ -205,10 +205,10 @@ export class Component<
|
||||
*
|
||||
* Notes:
|
||||
* - it checks if we do not add extra keys to the state.
|
||||
* - it is ok to call updateState before the widget is started. In that
|
||||
* - it is ok to call setState before the widget is started. In that
|
||||
* case, it will simply update the state and will not rerender
|
||||
*/
|
||||
async updateState(nextState: Partial<State>) {
|
||||
async setState(nextState: Partial<State>) {
|
||||
if (Object.keys(nextState).length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user