mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-08-04 14:51:55 +00:00
Remove redundant label fetch on mount
This commit is contained in:
parent
002d675dc6
commit
20b8a9d7e9
@ -169,11 +169,6 @@ const useLightrangeGraph = () => {
|
||||
const minDegree = useSettingsStore.use.graphMinDegree()
|
||||
const isFetching = useGraphStore.use.isFetching()
|
||||
|
||||
// Fetch all database labels on mount
|
||||
useEffect(() => {
|
||||
useGraphStore.getState().fetchAllDatabaseLabels()
|
||||
}, [])
|
||||
|
||||
// Use ref to track fetch status
|
||||
const fetchStatusRef = useRef<Record<string, boolean>>({});
|
||||
|
||||
@ -276,6 +271,7 @@ const useLightrangeGraph = () => {
|
||||
const state = useGraphStore.getState()
|
||||
state.reset()
|
||||
state.setSigmaGraph(new DirectedGraph())
|
||||
state.setGraphLabels(['*'])
|
||||
}
|
||||
}, [queryLabel, maxQueryDepth, minDegree, isFetching])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user