MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / loadQueries

Function loadQueries

frontend/src/hooks/query/useQueryHistory.ts:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 // Load queries from storage on mount
36 useEffect(() => {
37 const loadQueries = async () => {
38 setIsLoadingQueries(true);
39 try {
40 await loadQueriesFromStorage();
41 } catch (error) {
42 console.error('Error loading queries:', error);
43 } finally {
44 setIsLoadingQueries(false);
45 }
46 };
47
48 loadQueries();
49 }, [loadQueriesFromStorage]);

Callers 1

useQueryHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected