We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6492c4d commit 50a2b70Copy full SHA for 50a2b70
README.md
@@ -232,11 +232,7 @@ import createLogger from 'redux-logger';
232
233
const actionTransformer = action => {
234
if (action.type === 'BATCHING_REDUCER.BATCH') {
235
- action.payload.type = action.payload.reduce((result, next) => {
236
- const prefix = result ? result + ' => ' : '';
237
- return prefix + next.type;
238
- }, '');
239
-
+ action.payload.type = action.payload.map(result => result.type).join(' => ');
240
return action.payload;
241
}
242
0 commit comments