diff --git a/src/renderers/Dialog.tsx b/src/renderers/Dialog.tsx index 9dee4adbf..c8e1e8f86 100644 --- a/src/renderers/Dialog.tsx +++ b/src/renderers/Dialog.tsx @@ -71,6 +71,7 @@ export default class Dialog extends React.Component { }; reaction: any; + isDead = false; $$id: string = guid(); constructor(props: DialogProps) { super(props); @@ -114,6 +115,7 @@ export default class Dialog extends React.Component { componentWillUnmount() { this.reaction && this.reaction(); + this.isDead = true; } buildActions(): Array { @@ -586,6 +588,9 @@ export class DialogRenderer extends Dialog { store.markBusying(false); }) .catch(reason => { + if (this.isDead) { + return; + } store.updateMessage(reason.message, true); store.markBusying(false); });