mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-15 00:44:56 -05:00
ack PR comments
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user