MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / fetchData

Function fetchData

frontend/src/app/PackForm/PackForm.tsx:35–37  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

33 React.useEffect(() => {
34 setLoading(true);
35 async function fetchData(id: number) {
36 await getData(id);
37 }
38 getItems()
39 .then(items => setInventory(items))
40 .catch(() => alertError({ message: 'Unable to retrieve inventory' }));

Callers 1

PackFormFunction · 0.85

Calls 1

getDataFunction · 0.85

Tested by

no test coverage detected