We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
actionType
1 parent 2aa5438 commit a4b25b6Copy full SHA for a4b25b6
src/React/Redux.js
@@ -4,10 +4,8 @@ var Redux = require('redux');
4
5
var ReactRedux = require('react-redux');
6
7
-var actionType = '@@PURESCRIPT_REACT_REDUX';
8
-
9
function startsWithActionType(actionForeign) {
10
- var index = actionForeign.type.indexOf(actionType);
+ var index = actionForeign.type.indexOf('@@PURESCRIPT_REACT_REDUX');
11
12
return index === 0;
13
}
@@ -16,7 +14,7 @@ function makeActionForeign(action) {
16
14
var constructorName = action.constructor && action.constructor.name ? action.constructor.name : 'UnknownConstructorName';
17
15
18
var actionForeign = {
19
- type: actionType + '/' + constructorName,
+ type: '@@PURESCRIPT_REACT_REDUX/' + constructorName,
20
action: action
21
};
22
0 commit comments