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
Rule: no-watch #48
Comments
But effects has the same computation priority 🤔 I agree, we can forbid |
forward({
from: fooEvt,
to: barEvt
}); fooEvt.watch(barEvt); The second option can lead to an "unexpected" calculation order. |
If u want I can try to implement this rule. Both my issues are not "do it for us" :) I just need an approve of the idea so I don't waste my time. |
So, I agree, it's a good rule. Let's do it. I think we ought to mark this rule as |
Maybe u can give me some recommendations how to write new rule? I wrote rules many-many years ago :c |
Oh, I don't think so 🥲 my only advice: try to write as many tests as you can. ESLint plug-in documentation is a really poor. |
Need a little help. What we should to do with the JS way branch? |
Such a good question. I don't have an answer for you. Maybe, we ought to introduce #32 before? But, it isn't resolving a problem with something like So, in my opinion, we have three ways:
What do you think? |
I like the first way. I'll explain why. Don't take the rule away from developers with TypeScript and Effector projects just because not all projects have TypeScript. Binding to the name convention seems fragile because any naming rule can be disabled. |
I agree. But we should notice it in documentation. |
Watch have last computation priority.
Frequent use of the watch can lead to races that are very difficult to debug. Often, the use of the watch can be avoided (by using
target
, for example).The text was updated successfully, but these errors were encountered: