MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / fetchData

Function fetchData

client/src/component/Community.jsx:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 // Fetch projects on component mount
41 useEffect(() => {
42 const fetchData = async () => {
43 setLoading(true); // Set loading to true before fetching
44 await getGlobalProjects();
45 setLoading(false); // Set loading to false after data is fetched
46 };
47 fetchData();
48 // eslint-disable-next-line
49 }, []);

Callers 1

CommunityFunction · 0.70

Calls 1

getGlobalProjectsFunction · 0.85

Tested by

no test coverage detected