Skip to content

Supporting deep equal check?  #16

@TechAkayy

Description

@TechAkayy

Referring to https://github.com/davej/js-redux/blob/master/src/helpers.js#L3

Is it possible to configure a deep-equality check that we can pass either like provide(store, isEqual) or @connect(state => state.todos, todoActions, isEqual) where isEqual could our custom equality check function, that could override the default shallow-equal check. This is done in this other redux-watch basic one - https://github.com/ExodusMovement/redux-watch#note-on-comparisons

I would probably have lodash isEqual imported in my app, and pass it, and get more accurate "updated" triggerred in my class.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions