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