Utilisation de React pour le client

This commit is contained in:
2019-11-28 14:12:48 +01:00
parent 98f4288c8a
commit c6851f3f42
27 changed files with 751 additions and 444 deletions

View File

@ -0,0 +1,14 @@
import { all, takeEvery } from 'redux-saga/effects';
import { handleFailedActionSaga } from './failure';
export function* rootSaga() {
yield all([
takeEvery(patternFromRegExp(/^.*_FAILURE/), handleFailedActionSaga),
]);
}
export function patternFromRegExp(re) {
return (action) => {
return re.test(action.type);
};
}