Skip to content

Commit e9e8139

Browse files
kolbeyangclaude
andcommitted
fix: hoist inline fetchParams to module constant to prevent unnecessary refetches
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 940b6e5 commit e9e8139

File tree

1 file changed

+3
-1
lines changed
  • frontend/components/debugger-sessions/debugger-session-view/sidebar

1 file changed

+3
-1
lines changed

frontend/components/debugger-sessions/debugger-session-view/sidebar/traces-tab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import type { TraceRow } from "@/lib/traces/types";
88

99
import { useDebuggerSessionStore } from "../store";
1010

11+
const TRACE_FETCH_PARAMS = { traceType: "DEFAULT" } as const;
12+
1113
export default function TracesTab() {
1214
const { projectId } = useParams<{ projectId: string; id: string }>();
1315
const { loadHistoryTrace, trace } = useDebuggerSessionStore((state) => ({
@@ -27,7 +29,7 @@ export default function TracesTab() {
2729
<TracePicker
2830
onTraceSelect={handleTraceSelect}
2931
focusedTraceId={trace?.id}
30-
fetchParams={{ traceType: "DEFAULT" }}
32+
fetchParams={TRACE_FETCH_PARAMS}
3133
description="Select a trace to rerun in debugger. Trace structure must match the agent you are running locally."
3234
/>
3335
);

0 commit comments

Comments
 (0)