-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working when browser not support Symbol #22
Comments
+1 -- having this issue in phantom, even though it's going through babel first. Any ideas? |
as a hotfix in my codebase, i fixed this by:
there is some weird issue with the way babel is handling symbols that's preventing it from working, but I can't figure it out. |
You could inject a polyfill for |
I changed my test setup to not include Phantom so I can't verify this, but I believe I did have Symbol polyfilled. It's possible the issue was with the polyfill, or that it wasn't working properly, although other ES6 stuff like Promise did. Once i get browser tests running again I'll report back. |
@olslash Did you bundle the project when testing in Phantom.js? As far as I know, if you didn't use something like Browserify, Phantom.js could work improperly with core.js polyfills. |
+1 I'm having this issue in IE11. I added es6-symbol and verified that I can create and use Symbols, but I still can't get [CALL_API] to work in IE. |
FWIW, I ran into the same issue when using with react-native on pre-iOS-9 devices. |
I don't think we should be using symbols in the action anyway, as the redux docs suggest against it: "We recommend that you use strings and not Symbols for action types, because strings are serializable, and by using Symbols you make recording and replaying harder than it needs to be." Although this is talking specifically about action types, the same principle applies for all parts of an action. So I think we should change the lines here from: const CALL_API = Symbol('Call API');
export default CALL_API; to export default 'CALL API'; |
i found the Discussion about use Symbol as action type. reduxjs/redux#114 (comment) and @gaearon change Symbol to prefix |
+1 for '@@' |
Agreed. Its also what |
@geminiyellow I think CALL_API is fine, but what about using The example would then become
Just a thought.. i have to say that |
@barrystaes
|
|
oh My fault, sorry @georgebonnr . |
+1 It's nice to have it working on IE8 |
@georgebonnr I'm looking forward to your experiences and utils. :) edit: i just added a projects section to the README.md |
so what is the best solution for fixing this issue? |
PR #43 is the best solution, and soon wil be in the next branch for v2.0.0-beta. |
thx for reminding, can't wait for the next release version. |
[MODIFIED] Fix for issue #22, updated Babel and ESLint to latest (test script was failing after cloning fresh repo)
@barrystaes Hey! [s] |
+1 |
I can not publish to npm, but @agraboso can. A workaround is to use [git-urls-as-dependencies](https://docs.npmjs.com/files/package.json#git urls as dependencies). |
@barrystaes @agraboso Can you please publish to npm or something? Thanks |
Lol, I feel bad for putting a symbol there in the first place in the |
ok, let's blame @gaearon 😁 |
I just published v1.0.2 and v2.0.0-beta.1 to npm. |
I still get the error in IE11 using version 1.0.2 is this already released there? What would be the best solution to get that fixed? |
if browser not support Symbol ,the action.key is string not equal to object , so push error and not send api
I fount if browser support Symbol , do not enter this
for
loop . because action.key is real SymbolMaybe this validate is not necessary .
The text was updated successfully, but these errors were encountered: