rename updateState into setState

This commit is contained in:
Géry Debongnie
2019-03-15 11:54:59 +01:00
parent 9be0b65cd3
commit d99ea4c9f4
9 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -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;
}