perf(editor): Optimize log entries calculation with throttled watcher (no-changelog) (#18486)

This commit is contained in:
Alex Grozav
2025-08-26 13:45:35 +01:00
committed by GitHub
parent 38f25d74eb
commit 71ff4d8b6b
8 changed files with 79 additions and 32 deletions

View File

@@ -13,12 +13,13 @@ import { useCanvasStore } from '@/stores/canvas.store';
import { useLogsStore } from '@/stores/logs.store';
import { useUIStore } from '@/stores/ui.store';
import { shallowRef, watch } from 'vue';
import { computed, type ComputedRef } from 'vue';
import { computed } from 'vue';
import type { Ref, ComputedRef } from 'vue';
import { useWorkflowsStore } from '@/stores/workflows.store';
export function useLogsSelection(
execution: ComputedRef<IExecutionResponse | undefined>,
tree: ComputedRef<LogEntry[]>,
tree: Ref<LogEntry[]>,
flatLogEntries: ComputedRef<LogEntry[]>,
toggleExpand: (entry: LogEntry, expand?: boolean) => void,
) {