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

Function fetchData

ozaria/site/store/BaseSingleClass.js:151–157  ·  view source on GitHub ↗
({ dispatch }, options)

Source from the content-addressed store, hash-verified

149 },
150
151 fetchData ({ dispatch }, options) {
152 let cmptName = COMPONENT_NAMES.MY_CLASSES_SINGLE
153 if (options?.componentName) {
154 cmptName = options.componentName
155 }
156 return dispatch('teacherDashboard/fetchData', { componentName: cmptName, options: _.assign({ data: projectionData }, options) }, { root: true })
157 },
158
159 async applyLicenses ({ state, rootGetters, dispatch, getters }, { selectedPrepaidId } = { selectedPrepaidId: undefined }) {
160 const students = getters.selectedStudentIds.map(id => rootGetters['teacherDashboard/getMembersCurrentClassroom'].find(({ _id }) => id === _id)).filter(Boolean)

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected