Files
freeCodeCamp/client/new-framework/execute-challenge-saga.js
2016-07-28 23:39:17 -07:00

14 lines
369 B
JavaScript

import createTypes from '../../common/app/utils/create-types';
const filterTypes = [
execute
];
export default function executeChallengeSaga(action$, getState) {
return action$
.filter(({ type }) => filterTypes.some(_type => _type === type))
.map(action => {
if (action.type === execute) {
const editors = getState().editors;
}
})
}