Fetch all labels and graph data again on refresh

This commit is contained in:
yangdx
2025-03-20 01:16:48 +08:00
parent 0210170ecd
commit e9fc12042c
2 changed files with 20 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ const useLightrangeGraph = () => {
return
}
// Only fetch data when graphDataFetchAttempted is false
// Only fetch data when graphDataFetchAttempted is false (avoids re-fetching on vite dev mode)
if (!isFetching && !useGraphStore.getState().graphDataFetchAttempted) {
// Set flags
fetchInProgressRef.current = true