()
| 192 | |
| 193 | useEffect(() => { |
| 194 | const fetchCount = () => { |
| 195 | const iterations = IterationStore.getIterationsForAgent(agentId); |
| 196 | if (iterations.length !== lastCountRef.current) { |
| 197 | lastCountRef.current = iterations.length; |
| 198 | setCount(iterations.length); |
| 199 | } |
| 200 | }; |
| 201 | |
| 202 | fetchCount(); |
| 203 | const interval = setInterval(fetchCount, pollInterval); |
no test coverage detected