Skip to content

replaceReducer eliminates enhancer #4127

Closed
@antontsvil

Description

@antontsvil

What is the current behavior?

If you use an enhancer when creating your Redux store, the first subsequent call to replaceReducer on the store seems to remove the enhancer.

Steps to Reproduce

Run this JSFiddle and observe the console
The enhancer will stop logging actions following the call to replaceReducer

What is the expected behavior?

Not sure if what I'm reporting is not a bug and I'm misunderstanding the usage of enhancers; But seems to me enhancers should persist for the lifetime of the store, regardless of which reducers are being used.

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