diff --git a/src/components/pipeline-tasks/pipeline-task-details.tsx b/src/components/pipeline-tasks/pipeline-task-details.tsx index 4562b93..89bf51d 100644 --- a/src/components/pipeline-tasks/pipeline-task-details.tsx +++ b/src/components/pipeline-tasks/pipeline-task-details.tsx @@ -118,10 +118,14 @@ export const PipelineTaskDetails = ({ taskId }: Props) => { { taskId: string } >(FIND_PIPELINE_TASK, { variables: { taskId } }); - subscribeToMore({ - document: PIPELINE_TASK_CHANGED, - variables: { taskId } - }); + useMemo( + () => + subscribeToMore({ + document: PIPELINE_TASK_CHANGED, + variables: { taskId } + }), + [subscribeToMore, taskId] + ); const store = useLocalObservable(() => new Store());