()
| 300 | |
| 301 | |
| 302 | const refreshOutput = async () => { |
| 303 | setRefreshing(true); |
| 304 | try { |
| 305 | await loadOutput(true); // Skip cache when manually refreshing |
| 306 | setToast({ message: 'Output refreshed', type: 'success' }); |
| 307 | } catch (error) { |
| 308 | console.error('Failed to refresh output:', error); |
| 309 | setToast({ message: 'Failed to refresh output', type: 'error' }); |
| 310 | } finally { |
| 311 | setRefreshing(false); |
| 312 | } |
| 313 | }; |
| 314 | |
| 315 | |
| 316 | // Load output on mount and check cache first |
nothing calls this directly
no test coverage detected