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

[Feature Request] Nice to have a changed callback #4

Open
sudomf opened this issue Sep 14, 2017 · 1 comment
Open

[Feature Request] Nice to have a changed callback #4

sudomf opened this issue Sep 14, 2017 · 1 comment

Comments

@sudomf
Copy link

sudomf commented Sep 14, 2017

It would nice to have a "changed" callback, then we could observe changes of ReactiveField :)

@mitar
Copy link
Member

mitar commented Sep 17, 2017

You just wrap it inside autorun and you get called when it changes? :-)

Tracker.autorun(() => {
    field();
    // changed
});

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