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