Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tap): make next optional #3073

Merged
merged 1 commit into from
Nov 15, 2017

Conversation

felixfbecker
Copy link
Contributor

@felixfbecker felixfbecker commented Nov 14, 2017

This is possible at runtime, but the typings don't reflect it and it's annoying when only wanting to tap into error or complete.

closes #2534

@rxjs-bot
Copy link

Messages
📖

CJS: 1377.9KB, global: 747.4KB (gzipped: 119.7KB), min: 145.2KB (gzipped: 31.3KB)

Generated by 🚫 dangerJS

@coveralls
Copy link

coveralls commented Nov 14, 2017

Coverage Status

Coverage remained the same at 97.078% when pulling 02fccab on felixfbecker:tap-optional-next into cd9626a on ReactiveX:master.

@martinsik
Copy link
Contributor

You can also use this:

tap({ error: e => console.log(e) })

or:

tap({ complete: () => console.log('...') })

@felixfbecker
Copy link
Contributor Author

I know

@benlesh
Copy link
Member

benlesh commented Nov 15, 2017

This is a valid change... however I'd also advise @martinsik's method mentioned above, as it's more readable, IMO.

@benlesh benlesh merged commit e659f0c into ReactiveX:master Nov 15, 2017
@felixfbecker felixfbecker deleted the tap-optional-next branch November 15, 2017 19:47
@lock
Copy link

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default values for do() parameters
5 participants