Skip to content

Commit

Permalink
fix(core): Fix effect in TaskMonitorWrapper (#8070)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmquach committed Mar 23, 2020
1 parent 7bf3e81 commit 29fdb89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TaskMonitorWrapper = ({ monitor }: ITaskMonitorProps) => {
useEffect(() => {
const subscription = monitor?.statusUpdatedStream.subscribe(() => forceUpdate());
return () => subscription?.unsubscribe();
}, []);
}, [monitor]);

if (!monitor || (!monitor.submitting && !monitor.error)) {
return null;
Expand Down

0 comments on commit 29fdb89

Please sign in to comment.