question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False statement in docs/lettable-operators

See original GitHub issue

I love lettable operators, but this is a false claim:

Unused operators that are being imported in apps cannot be detected reliably by any sort of build tooling or lint rule. That means that you might import scan, but stop using it, and it’s still being added to your output bundle. With lettable operators, if you’re not using it, a lint rule can pick it up for you.

(emphasis mine)

I’ve been using https://www.npmjs.com/package/rxjs-tslint-rules and it does exactly that - make sure you have the right add imports per file or project, prevent you from importing the whole rxjs library and error if you import operators that you don’t actually use.

It can also be used to enforce lettable operators by forbidding the add imports completely, so it may be worth a mention.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
felixfbeckercommented, Nov 14, 2017

Yeah

0reactions
lock[bot]commented, Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AND function - Google Docs Editors Help
The AND function returns true if all of the provided arguments are logically true, and false if any of the provided arguments are...
Read more >
Importing lettable RxJS operators - Stack Overflow
This statement is easy to proof on the practice with the brand new AngularCLI-generated app. When we have an application that doesn't import ......
Read more >
RxJS: Understanding Lettable Operators - ncjamieson
An overview of lettable operators. ... verbosity — is that Function.prototype.call returns any , so the operator's type information is lost.
Read more >
A First Hour with OCaml
The ocaml command provides a basic toplevel (install rlwrap through your system ... Here is another function, this time using the comparison operator...
Read more >
API - esbuild
The API can be accessed in one of three ways: on the command line, in JavaScript ... DEBUG && require("hooks")' | esbuild --define:DEBUG=falsehooks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found