Skip to content

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

Development

Successfully merging this pull request may close these issues.

1 participant