Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
bilalq
2y ago
0 comments
Share
Are you running those two lint rules I mentioned? They should completely remove cases of accidental floating promises.
0 comments
default
newest
oldest
consilient
2y 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.
j
/
k
navigate · click thread line to collapse