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

Function combineData

src/App.js:35–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 };
34
35 const combineData = async () => {
36 setLoadingProfiles(true);
37 try {
38 const promises = filenames.map((file) => fetchData(`/data/${file}`));
39 const combinedData = await Promise.all(promises);
40 setCombinedData(combinedData);
41 setShuffledProfiles(shuffleProfiles(combinedData));
42 } catch (error) {
43 console.error('Error combining data:', error);
44 setCombinedData([]);
45 setShuffledProfiles([]);
46 }
47 setLoadingProfiles(false);
48 };
49
50 combineData();
51 }, []);

Callers 1

App.jsFile · 0.85

Calls 2

fetchDataFunction · 0.85
shuffleProfilesFunction · 0.85

Tested by

no test coverage detected