Skip to content

Supporting deep equal check?  #16

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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