Skip to content

passing an invalid reducer to combineReducers() silently fails #1398

@nabn

Description

@nabn

If I pass something to combineReducers() that doesn't really return a valid reducer, it silently fails. But if it's the only reducer passed to combineReducers(), it throws an error saying valid reducers were not passed. I'm not sure if it's a bug, but sure does look like one to me.

Isn't it better if it warned me if one of the arguments passed to combineReducers() wasn't a valid reducer?

I ran into this issue when I forgot to do export default myReducer in one of my reducer files.

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