()
| 75 | |
| 76 | useEffect(() => { |
| 77 | async function loadHistory() { |
| 78 | const filePath = await getHistoryFilePath(projectRoot); |
| 79 | setHistoryFilePath(filePath); |
| 80 | const loadedHistory = await readHistoryFile(filePath); |
| 81 | setHistory(loadedHistory.reverse()); // Newest first |
| 82 | } |
| 83 | loadHistory(); |
| 84 | }, [projectRoot]); |
| 85 |
no test coverage detected