Skip to content
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

Add support for Symbol action types #14

Merged
merged 1 commit into from Aug 21, 2015
Merged

Add support for Symbol action types #14

merged 1 commit into from Aug 21, 2015

Conversation

ghost
Copy link

@ghost ghost commented Aug 21, 2015

I've been working on an app where we're using Symbols as the action types. Using redux-logger in this case throws an exception since Symbol doesn't support string concatenation. So this small patch manually coerces the action type to a string before attempting to log it.

Symbol doesn't support string concatenation, so first ensure
action type is a string before logging.
imevro pushed a commit that referenced this pull request Aug 21, 2015
feat: add support for Symbol action types
@imevro imevro merged commit a5ca5a4 into LogRocket:master Aug 21, 2015
@imevro
Copy link
Collaborator

imevro commented Aug 21, 2015

It's not working because redux doesn't have support of Symbol.
image

Reverted PR for now, frozen until redux's support.

imevro pushed a commit that referenced this pull request Aug 22, 2015
@imevro
Copy link
Collaborator

imevro commented Aug 22, 2015

Hey, my bad, have old redux (1.0.0-rc instead of 1.0.1) in example. Thanks for your PR!

1.0.4: https://github.com/fcomb/redux-logger/releases/tag/1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant