Y
Hacker News
new
|
ask
|
show
|
jobs
by
bilalq
1100 days ago
Are you running those two lint rules I mentioned? They should completely remove cases of accidental floating promises.
1 comments
consilient
1099 days ago
Yes, but the floating isn't the issue: throwing in my example was just a concrete stand in for promise side effects in general. Running queries you only need in one not so common branch before the conditional gets checked, for instance.
link