Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimMcCool/scratchattach
/ fetchData
Function
fetchData
website/source/js/loadCommunityProjects.js:1–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
async
function
fetchData() {
2
const
response =
await
fetch(
'/api/community_projects/'
);
3
const
data =
await
response.json();
4
addItems(data);
5
}
6
7
// Function to add items to the DOM
8
function
addItems(items) {
Callers
nothing calls this directly
Calls
3
fetch
Function · 0.85
addItems
Function · 0.85
json
Method · 0.80
Tested by
no test coverage detected