Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom comparison function #8

Open
Raynos opened this issue Jul 5, 2014 · 1 comment
Open

allow custom comparison function #8

Raynos opened this issue Jul 5, 2014 · 1 comment

Comments

@Raynos
Copy link
Owner

Raynos commented Jul 5, 2014

The current comparison just does equality on the arguments.

Maybe we want a custom comparison that knows how to handle arguments that are "tuples" i.e. shallow comparison on array arguments.

@Matt-Esch
Copy link
Collaborator

Custom comparison function now possible in #9:

var createPartial = require('vdom-thunk/partial');

module.exports = createPartial(function (currentArgs, previousArgs) {
    // currentArgs and previousArgs are an array of args passed into
    // the thunk for the current and previous thunks
    return false;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants