ack PR comments

This commit is contained in:
waleed
2026-02-14 17:43:47 -08:00
parent 9f98f59cc7
commit ca0105aceb
3 changed files with 15 additions and 12 deletions

View File

@@ -371,9 +371,7 @@ function DashboardInner({ stats, isLoading, error }: DashboardProps) {
[toggleWorkflowId]
)
useEffect(() => {
lastAnchorIndicesRef.current = lastAnchorIndices
}, [lastAnchorIndices])
lastAnchorIndicesRef.current = lastAnchorIndices
/**
* Handles segment click for selecting time segments.

View File

@@ -234,8 +234,7 @@ const WorkflowOutputSection = memo(
</div>
)
},
(prev, next) =>
prev.output === next.output || JSON.stringify(prev.output) === JSON.stringify(next.output)
(prev, next) => prev.output === next.output
)
interface LogDetailsProps {

View File

@@ -230,13 +230,19 @@ export default function Logs() {
useEffect(() => {
selectedLogIdRef.current = selectedLogId
}, [selectedLogId])
logsRefetchRef.current = logsQuery.refetch
activeLogRefetchRef.current = activeLogQuery.refetch
logsQueryRef.current = {
isFetching: logsQuery.isFetching,
hasNextPage: logsQuery.hasNextPage ?? false,
fetchNextPage: logsQuery.fetchNextPage,
}
useEffect(() => {
logsRefetchRef.current = logsQuery.refetch
}, [logsQuery.refetch])
useEffect(() => {
activeLogRefetchRef.current = activeLogQuery.refetch
}, [activeLogQuery.refetch])
useEffect(() => {
logsQueryRef.current = {
isFetching: logsQuery.isFetching,
hasNextPage: logsQuery.hasNextPage ?? false,
fetchNextPage: logsQuery.fetchNextPage,
}
}, [logsQuery.isFetching, logsQuery.hasNextPage, logsQuery.fetchNextPage])
useEffect(() => {
const timers = refreshTimersRef.current