change setState() to updateState()

this way we don't wipe out state if we change a different value
This commit is contained in:
David Lechner
2021-01-22 15:58:10 -06:00
parent 79e06bcd51
commit 08fea237c9
7 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ export class AsyncSaga {
return Promise.resolve(next);
}
public setState(state: RecursivePartial<RootState>): void {
this.state = state;
public updateState(state: RecursivePartial<RootState>): void {
this.state = { ...this.state, ...state };
}
public async end(): Promise<void> {