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.

export pipe() as function for concise use

See original GitHub issue

I’m working with 5.5.0-beta.2 though the exact version does not matter, this is about pipe() in general. In trying to make concise use of the new legible operators, I end up using variants of this snippet of code repeatedly:

    someObs.mergeMap(x => x.pipe( ...

I’m hoping to eliminate the superfluous x => x. from here, using a top level pipe available directly rather than only as an operator on Observable. So instead I could do something like:

import { pipe } from 'rxjs/somewhere';

    someObs.mergeMap(pipe( ...

I think this pipe() may be just a function composition function under the good, with all the right TypeScript stuff in place to preserve the developer experience.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
benleshcommented, Oct 4, 2017

Feature request: that whatever final form emerges to make it possible to mostly import all the stuff needed from RxJs from a single module (ideally) or at most a couple of modules, that pipe be included.

I’m hoping that by the final release of v6 everyone will be able to just import straight from rxjs like:

import { Observable, Subject, map, filter, asyncScheduler } from 'rxjs';

What remains to be seen is whether that will work well with bundlers or not. It seems like bundlers have some catch-up to do.

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

How to use PowerShell Objects and Data Piping - Varonis
How to use PowerShell Objects and Data Piping ... ToUpper() HELLO, WORLD! ... In general, scripts are small and do one very concise...
Read more >
Use magrittr's pipe in your package — use_pipe • usethis
Exports the pipe operator, if export = TRUE , which is necessary to make %>% available to the users of your package. Usage....
Read more >
3 Transforming, summarising, and analysing data
Save and export your data,; Work with RStudio projects,; Run t-tests and fit linear models,; Use %>% pipes to chain functions together.
Read more >
Azure Tip 9 – More Azure Powershell (pipes, filters, output ...
Exporting Data From Powershell. In this section we take a look at the following cmdlets: Export-Csv; ConvertTo-Json; ConvertTo-Html; ConvertTo- ...
Read more >
Tips for using the Azure CLI successfully - Microsoft Learn
Learn tips for using Azure CLI successfully, such as output formats, passing parameter values, and quoting rules for different shells.
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