Skip to content

Non-string action types are reported <UNDEFINED> #459

@ajcrites

Description

@ajcrites

You can use anything as an action type, but it seems like only strings are logged properly.

screen shot 2018-02-21 at 3 31 30 pm

For example if you have LOAD_USER = Symbol('load user'); and then dispatch({ type: LOAD_USER }), it will log the action as <UNDEFINED>.

The action type should be logged as String(action.type).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions