/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
3.0.2
lib/utils/effects.js
17 строк
443 B
Hrvoje Šimić
fix various typos and grammar errors in comments (#834)
10 окт 2016, 13:26
10 окт 2016, 13:26
7e71bf3
Код
Авторство
О чём код?
/** * Simple redux middleware that executes * the `effect` field if provided in an action * since this is preceded by the `plugins` * middleware. It allows authors to interrupt, * defer or add to existing side effects at will * as the result of an action being triggered. */ export default () => next => action => { const ret = next(action); if (action.effect) { action.effect(); delete action.effect; } return ret; };