Skip to content

Create store failed when use handleActions with empty reducerMap #202

@JuoCode

Description

@JuoCode

I have a todosReducer:

import { handleActions } from 'redux-actions';

const initState = {}

export default handleActions({

}, initState)

Error message:

Uncaught Error: Reducer "todos" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions