-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add warning when passing an action to autorun #576
Comments
Would you mind creating a PR? Should be pretty straightforward, since |
I can try, hehe. :) |
@mweststrate adding this check breaks existing tests. This is all I added: |
It appears to be related to using spies. |
can you turn it into a PR, then I'll verify. might be error in the test Op zo 25 sep. 2016 16:09 schreef Jeff Hansen [email protected]:
|
Will do! |
Released as part of |
Sweet! |
I spent 30 minutes today wondering why my
autorun
wasn't triggering. Turns out it was because I was doing this:and actions are untracked (as I found out in #490). I think it would be a good idea to add a development-only warning when attempting to set up
autorun
with an action.Implementing it shouldn't be too difficult - the function being returned from
action
could have a tag (a Symbol or just a privatized key) that is checked when creating an autorun.Example warning:
The text was updated successfully, but these errors were encountered: