Skip to content
public-library›Rules›JavaScript›Await only on paths that need the result

Await only on paths that need the result

Move an await into the branch that uses its result, and check cheap synchronous conditions before awaiting a remote value that is combined with them.

In the full rule