Skip to content

Should combineReducers return the same object if nothing changes? #853

@aaronjensen

Description

@aaronjensen

Right now, the reducer returned by combineReducers returns a new object regardless of whether or not the reducers it is combining make any changes. This means breaking reference equal every action, which limits its usefulness when using nested combinations unless you always select all the way down to the piece of state that maintains reference equality integrity. It'd be a little bit more slow to introduce an equality check, after the mapValues but it seems like it'd be better, yeah?

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