Skip to content

Commit 78c29b7

Browse files
committed
Merge pull request #796 from gcanti/add-prefix-to-randomly-generated-type
Add prefix to randomly generated action type in combineReducers #792
2 parents 3f02418 + c39ee57 commit 78c29b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/combineReducers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function combineReducers(reducers) {
8585
);
8686
}
8787

88-
var type = Math.random().toString(36).substring(7).split('').join('.');
88+
var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.');
8989
if (!sanityError && typeof reducer(undefined, { type }) === 'undefined') {
9090
sanityError = new Error(
9191
`Reducer "${key}" returned undefined when probed with a random type. ` +

0 commit comments

Comments
 (0)