Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed May 20, 2016
1 parent 33c1dd0 commit 3dca28f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<<LONG_BLOB>>' } : action
);

export default createDevTools(
<FilterMonitor
blacklist={['ACTION1', 'ACTION2']}
actionsFilter={(action) => (
action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?
{ ...action, data: '<<LONG_BLOB>>' } : action
)
}
actionsFilter={actionsFilter}
statesFilter={(state) => state.data ? { ...state, data: '<<LONG_BLOB>>' } : state}
>
<LogMonitor />
Expand Down

0 comments on commit 3dca28f

Please sign in to comment.