MCPcopy
hub / github.com/MikeChongCan/scylla / loadData

Method loadData

frontend/src/components/Statistics.tsx:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 async loadData() {
52 const response = await axios.get(`${getBaseURL()}/api/v1/stats`);
53 const res: StatsResponseJSON = response.data;
54 this.setState({
55 mean: res.mean,
56 median: res.median,
57 total_count: res.total_count,
58 valid_count: res.valid_count,
59 });
60 }
61}

Callers 1

componentDidMountMethod · 0.95

Calls 2

getBaseURLFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected