({ commit, state })
| 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() } |
no outgoing calls
no test coverage detected