Skip to content

Commit 3dca28f

Browse files
committed
Update README
1 parent 33c1dd0 commit 3dca28f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ import { createDevTools } from 'redux-devtools';
2121
import FilterMonitor from 'redux-devtools-filter-actions';
2222
import LogMonitor from 'redux-devtools-log-monitor';
2323

24+
// Stripping big data which slows down DevTools Monitor
25+
const actionsFilter = (action) => (
26+
action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?
27+
{ ...action, data: '<<LONG_BLOB>>' } : action
28+
);
29+
2430
export default createDevTools(
2531
<FilterMonitor
2632
blacklist={['ACTION1', 'ACTION2']}
27-
actionsFilter={(action) => (
28-
action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?
29-
{ ...action, data: '<<LONG_BLOB>>' } : action
30-
)
31-
}
33+
actionsFilter={actionsFilter}
3234
statesFilter={(state) => state.data ? { ...state, data: '<<LONG_BLOB>>' } : state}
3335
>
3436
<LogMonitor />

0 commit comments

Comments
 (0)