Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

fix(CALL_API): Use string constant instead of Symbols #1

Merged
merged 1 commit into from
Jul 1, 2016

Conversation

mroswald
Copy link

Android (and other like IE, iOS <9) do not support Symbols. The polyfills and transpiling the symbols with babel do no help, so use string instead of Symbol for better support.

* @access public
* @default
*/
const CALL_API = Symbol('Call API');
const CALL_API = '@@redux-api-middleware/CALL_API';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why @@?

Copy link
Author

@mroswald mroswald Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If found this comment where they discusses about the next branch of redux-api-middleware. They used the prefix there and it [the idea] seems to come from Redux itself.

See also https://github.com/agraboso/redux-api-middleware/blob/next/src/RSAA.js

@mroswald mroswald merged commit 77e5939 into master Jul 1, 2016
@mroswald mroswald deleted the fix/symbol-for-android branch February 23, 2017 10:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants