NKP-Pocky/Central\KpDataProvider\src\providers\icom\getIcomCacheData.js:34
async function fetchData() {
const icomData = {};
try {
const unstructuredGeometryData = await getGeometryData();
const scpData = calcScpGroups(unstructuredGeometryData);
icomData.data = await getStructuredGeometryData(unstructuredGeometryData);
icomData.scpGroups = mapScalableGroups(scpData);
// Since icomData might be cached by memoization make sure it does not get mutated.
return Object.freeze(icomData);
Central\KpDataProvider\src\providers\icom\getIcomCacheData.js 43:
sync function fetchData() {
const icomData = {};
try {
// "unstructureddata" could be renamed more specific... @oskarwingardikea
const unstructuredGeometryData = await getGeometryData();
const scpData = calcScpGroups(unstructuredGeometryData);
icomData.data = await getStructuredGeometryData(unstructuredGeometryData);
icomData.scpGroups = mapScalableGroups(scpData);
// Since icomData might be cached by memoization make sure it does not get mutated.
return Object.freeze(icomData);