1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: AsyncActionQueue: Support changing which tasks can be skipped (#10506)

This commit is contained in:
Henry Heino
2024-06-04 01:54:06 -07:00
committed by GitHub
parent efb48e6145
commit ac7165461a
5 changed files with 148 additions and 23 deletions

View File

@ -122,8 +122,7 @@ class NoteScreenComponent extends BaseScreenComponent<Props, State> implements B
// a re-render.
private lastBodyScroll: number|undefined = undefined;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
private saveActionQueues_: any;
private saveActionQueues_: Record<string, AsyncActionQueue>;
private doFocusUpdate_: boolean;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
private styles_: any;
@ -595,7 +594,7 @@ class NoteScreenComponent extends BaseScreenComponent<Props, State> implements B
shared.uninstallResourceHandling(this.refreshResource);
this.saveActionQueue(this.state.note.id).processAllNow();
void this.saveActionQueue(this.state.note.id).processAllNow();
// It cannot theoretically be undefined, since componentDidMount should always be called before
// componentWillUnmount, but with React Native the impossible often becomes possible.