MCPcopy Create free account
hub / github.com/codecombat/codecombat / fetch

Function fetch

app/core/store/modules/courses.js:46–49  ·  view source on GitHub ↗
({ commit, state })

Source from the content-addressed store, hash-verified

44
45 actions: {
46 fetch ({ commit, state }) {
47 if (state.loaded) { return Promise.resolve() }
48 return api.courses.getAll().then(courses => commit('addCourses', courses))
49 },
50
51 fetchOther ({ commit, state }, other) {
52 if (state.loadedOther) { return Promise.resolve() }

Callers 5

fetchWrapperFunction · 0.50
loadThangTypesFunction · 0.50
validateNextPollIdsMethod · 0.50
checkRemoteChangesMethod · 0.50
loadCreateJsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected