MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / load

Function load

suspense-error-boundary/src/App6.tsx:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18 async function load() {
19 setLoading(true);
20 const data = await fetchData();
21 setData(data);
22 setLoading(false);
23 }
24
25 useEffect(() => {
26 load();

Callers 1

AppFunction · 0.85

Calls 1

fetchDataFunction · 0.70

Tested by

no test coverage detected