File tree 1 file changed +7
-5
lines changed
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';
21
21
import FilterMonitor from ' redux-devtools-filter-actions' ;
22
22
import LogMonitor from ' redux-devtools-log-monitor' ;
23
23
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
+
24
30
export default createDevTools (
25
31
< FilterMonitor
26
32
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}
32
34
statesFilter= {(state ) => state .data ? { ... state, data: ' <<LONG_BLOB>>' } : state}
33
35
>
34
36
< LogMonitor / >
You can’t perform that action at this time.
0 commit comments