Skip to content

Commit af4c8c7

Browse files
committed
comment out fulltypes fetch
1 parent bcaed06 commit af4c8c7

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/AiidaExplorer/index.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ function AiidaExplorerInner({
111111
queryFn: () => fetchDownloadFormats(restApiUrl),
112112
});
113113

114-
queryClient.prefetchQuery({
115-
queryKey: ["nodeFullTypes"],
116-
queryFn: () => fetchAPIFullTypes(restApiUrl),
117-
});
114+
// queryClient.prefetchQuery({
115+
// queryKey: ["nodeFullTypes"],
116+
// queryFn: () => fetchAPIFullTypes(restApiUrl),
117+
// });
118118
}, [queryClient, restApiUrl]);
119119

120120
// --- Access cached data with useQuery ---
@@ -132,12 +132,12 @@ function AiidaExplorerInner({
132132
cacheTime: Infinity,
133133
});
134134

135-
const { data: fullTypes } = useQuery({
136-
queryKey: ["nodeFullTypes"],
137-
queryFn: () => fetchAPIFullTypes(restApiUrl),
138-
staleTime: Infinity,
139-
cacheTime: Infinity,
140-
});
135+
// const { data: fullTypes } = useQuery({
136+
// queryKey: ["nodeFullTypes"],
137+
// queryFn: () => fetchAPIFullTypes(restApiUrl),
138+
// staleTime: Infinity,
139+
// cacheTime: Infinity,
140+
// });
141141

142142
const [nodes, setNodes] = useState([]);
143143
const [edges, setEdges] = useState([]);

0 commit comments

Comments
 (0)