Skip to content

Add the @@redux/ prefix to randomly generated action type in combineReducers #792

@gcanti

Description

@gcanti

Hi, I'm trying to add type safety to actions and state with the redux-tcomb project.
For what concerns the actions I need to detect the redux specific internal actions in order to skip the type checking (for example the redux's ActionTypes.INIT action). Currently I have an issue with the combineReducers function which probes all reducers to be combined with a randomly generated action type to ensure each reducer returns undefined for action types that should be unrecognized by reducers (relevant LOC: https://github.com/rackt/redux/blob/master/src/utils/combineReducers.js#L88).

Is it possible to add the @@redux/ prefix to those randomly generated action types?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions