/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/debug/middleware/action-timing.js
16 строк
390 B
Alex Reardon
initial bumping
17 апр 2020, 10:14
17 апр 2020, 10:14
9186352
Код
Авторство
О чём код?
// @flow /* eslint-disable no-console */ import * as timings from '../timings'; import type { Action } from '../../state/store-types'; export default () => (next: (Action) => mixed) => (action: Action): any => { timings.forceEnable(); const key = `redux action: ${action.type}`; timings.start(key); const result: mixed = next(action); timings.finish(key); return result; };