MCPcopy Index your code
hub / github.com/codeaashu/DevDisplay / fetchData

Function fetchData

src/App.js:24–33  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

22 const currentUrl = window.location.pathname;
23 useEffect(() => {
24 const fetchData = async (file) => {
25 try {
26 const response = await fetch(file);
27 const data = await response.json();
28 return data;
29 } catch (error) {
30 console.error('Error fetching data:', error);
31 return [];
32 }
33 };
34
35 const combineData = async () => {
36 setLoadingProfiles(true);

Callers 1

combineDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected