File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ import { createDevTools } from 'redux-devtools';
2121import FilterMonitor from ' redux-devtools-filter-actions' ;
2222import 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+
2430export 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 / >
You can’t perform that action at this time.
0 commit comments