diff --git a/README.md b/README.md index b899b68..e05d845 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,16 @@ import { createDevTools } from 'redux-devtools'; import FilterMonitor from 'redux-devtools-filter-actions'; import LogMonitor from 'redux-devtools-log-monitor'; +// Stripping big data which slows down DevTools Monitor +const actionsFilter = (action) => ( + action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ? + { ...action, data: '<>' } : action +); + export default createDevTools( ( - action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ? - { ...action, data: '<>' } : action - ) - } + actionsFilter={actionsFilter} statesFilter={(state) => state.data ? { ...state, data: '<>' } : state} >