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
finalize docs are incomplete #4578
Comments
@cartant Hilarious :D The |
@dzhavat I've added the correct link. (And I've left the mistakenly-pasted link for the amusement of others.) |
Here is another reproduction of this issue |
HI, can we confirm that indeed finalize calls it's method in case we unsubscribe manually, before observable's execution reached complete / error ? |
@cartant thanks a lot for the link with the dog. It was really nice having this in between all the issue stuff. Haha Anyway, i will put it on my todo list. |
Same behavior observed and discussed here: IMHO this should deserve attention as it somehow introduce a new hookable "moment" in the lifetime of an observable which is not described yet . |
Hi, I'd like to help with this issue. |
@PDavid Please target |
@cartant Thanks, then I'll redo my changes and open a new PR to master. |
@PDavid Note that you can rebase your local branch (use |
@cartant Thanks for the rebase --onto hint. ;-) I rebased my branch onto master but needed to open a new PR because I already closed the original PR. |
It's in the queue. I can assure you that your work is appreciated, but we are all busy people. I will try to make some time on the weekend to go through the PR backlog. |
Sure, thank you! Just wanted to make sure. :) |
* docs(angular): migrate app from angular 6 to 8(#4687) (#4688) * docs(operator): add missing marble diagramms * Revert "docs(operator): add marbel diagramm to distinctUntilChanged" This reverts commit 6bf3aae. * Revert "docs(operator): add fitting description and diagramm to distinctUntilKeyChanged" This reverts commit 98c23b5. * Revert "docs(operator): add missing marble diagramms" This reverts commit b61acad. * docs(angular): update angular/ codelyzer/ typescript version * docs(angular): fix minor errors after migration * chore(eslint): update version * docs(app): upgrade to angular 8 * docs(migration): fix wrong polyfill imports * docs(finalize): improved #4578 - Added the fact that finalize will also call its callback if the subscriber explicitly unsubscribes. - Added example for finalize basic usage and when subscriber explicitly unsubscribes. * docs(finalize): implemented requested changes #4578 - Removed unneeded comment (with the numbers). - Changed example console output to be on separate lines. * docs(finalize): implemented requested changes #4578 Do not pass ``noop`` to error callback because it will swallow the error and this could be a bad example for newcomers. * docs(finalize): Revert accidentally pushed commit "docs(angular): migrate app from angular 6 to 8(#4687) (#4688)" This reverts commit c440b91
closed by #5065 |
Documentation Related To Component:
The
finalize
operator.Please check those that apply
Description Of The Issue
The docs state:
finalize
will also call its callback if the subscriber explicitly unsubscribes. See this test.The documentation needs an example, too.
Okay. I clearly pasted the wrong link. It's this test.
The text was updated successfully, but these errors were encountered: