Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
bilalq
3y ago
0 comments
Save
Share
Are you running those two lint rules I mentioned? They should completely remove cases of accidental floating promises.
0 comments
1 comments · 1 top-level
top
newest
oldest
consilient
3y 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