Skip to content

Commit a4b25b6

Browse files
felixSchlethul
authored andcommitted
Inline actionType
It seems to get compiled away when building for react-native
1 parent 2aa5438 commit a4b25b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/React/Redux.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ var Redux = require('redux');
44

55
var ReactRedux = require('react-redux');
66

7-
var actionType = '@@PURESCRIPT_REACT_REDUX';
8-
97
function startsWithActionType(actionForeign) {
10-
var index = actionForeign.type.indexOf(actionType);
8+
var index = actionForeign.type.indexOf('@@PURESCRIPT_REACT_REDUX');
119

1210
return index === 0;
1311
}
@@ -16,7 +14,7 @@ function makeActionForeign(action) {
1614
var constructorName = action.constructor && action.constructor.name ? action.constructor.name : 'UnknownConstructorName';
1715

1816
var actionForeign = {
19-
type: actionType + '/' + constructorName,
17+
type: '@@PURESCRIPT_REACT_REDUX/' + constructorName,
2018
action: action
2119
};
2220

0 commit comments

Comments
 (0)