René's URL Explorer Experiment


Title: Perhaps Router Resolve shouldn't wait for Observable to Complete? · Issue #10556 · angular/angular · GitHub

Open Graph Title: Perhaps Router Resolve shouldn't wait for Observable to Complete? · Issue #10556 · angular/angular

X Title: Perhaps Router Resolve shouldn't wait for Observable to Complete? · Issue #10556 · angular/angular

Description: This is probably best classified as a Router feature request. I'll describe what it is, my thinking, and a use case. What it is: Currently, the V3 Router waits for an Observable to Complete before completing navigation. I would like for ...

Open Graph Description: This is probably best classified as a Router feature request. I'll describe what it is, my thinking, and a use case. What it is: Currently, the V3 Router waits for an Observable to Complete before ...

X Description: This is probably best classified as a Router feature request. I'll describe what it is, my thinking, and a use case. What it is: Currently, the V3 Router waits for an Observable to Complete bef...

Opengraph URL: https://github.com/angular/angular/issues/10556

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Perhaps Router Resolve shouldn't wait for Observable to Complete?","articleBody":"This is probably best classified as a Router feature request. I'll describe what it is, my thinking, and a use case.\n\nWhat it is: Currently, the V3 Router waits for an Observable to Complete before completing navigation. I would like for it to instead continue navigation after the first Observable item is returned.\n\nMy thinking: Currently the Resolve treats the Observable as a Promise, defeating the power of the Observable. This doesn't present a barrier with Angular's Http, where only one item is returned. But unless I misunderstand, the point of using an Observable in Http is to allow easy extension throughout Angular into a scenario where the data is actually a stream.\n\nUse case: I have a live data feed from a remote server. I subscribe to a resource, rather than get it. When viewing this resource in a page, I only need one snapshot to complete navigation and display the component, but I would still like the updates bound to the view.\n\nMore detail:\n\nObservables as first-class citizens in Angular2 are great for displaying \"live data\". I currently rely on, and it is becoming more common to integrate, \"live data\" streamed/syndicated/published from web services. Regardless of the framework used to deliver streams to the client, Observables are the obvious choice to act as intermediary between the receiving agent/service and the view.\n\nResolvers in Angular are also very nice for a few reasons. One is that I can be sure I have all my data before performing initialization. This greatly simplifies my component initialization logic. It also simplifies managing built-in operations Angular performs, such as avoiding errors binding templates to properties on null models.\n\nBut where live data comes in, the current Resolve behavior is difficult to make use of. If we suppose the live data stream never completes, we have to instead resolve, for example, to Observable.first(), and throw away the remainder of the stream.\n\nOr I can go through extra steps for each of my Observables, to Observable.publish etc. But that's not enough, because there's not a symmetric exit hook for resolve, that I see. So instead I have to do some extra magic, such as tear down resources I didn't initialize in the component.\n\nIMO, in the spirit of Rx, a better behavior would be to:\n- Share the Observable, e.g. via PublishReplay\n- Connect\n- Subscribe\n- Wait for the first item\n- Unsubscribe\n- Complete navigation \n- Pass the shared Observable as ResolvedData\n- When exiting navigation Disconnect\n\nOr something similar.\n\nYour thoughts are appreciated. I'll also be happy to contribute effort if someone with design authority confirms an approach.","author":{"url":"https://github.com/syndicatedshannon","@type":"Person","name":"syndicatedshannon"},"datePublished":"2016-08-07T20:48:44Z","url":"https://github.com/angular/angular/issues/10556"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4fd091b2-21aa-49ce-3af3-8cb20c477317
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8498:33D24F:920357:BCE033:6B00F059
html-safe-nonce8e5207207b91d01bd6be7b82eac625571b9d576ac32cbd61ca9217c395632ffb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDk4OjMzRDI0Rjo5MjAzNTc6QkNFMDMzOjZCMDBGMDU5IiwidmlzaXRvcl9pZCI6IjUwOTI4NjcxNzA3ODY5MzA3NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac00dedc16833a4e1bbd6dbd680ae830bb978da7f12d3ec4e770461b8fe6d0aa7e
hovercard-subject-tagissue:169815500
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/10556/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9a4446e4fac8a081258bbc7ee2d7aee26ca80510fe899fd0f65aa7949c380cf1/angular/angular/issues/10556
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9a4446e4fac8a081258bbc7ee2d7aee26ca80510fe899fd0f65aa7949c380cf1/angular/angular/issues/10556
og:image:altThis is probably best classified as a Router feature request. I'll describe what it is, my thinking, and a use case. What it is: Currently, the V3 Router waits for an Observable to Complete before ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesyndicatedshannon
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/10556#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F10556
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F10556
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/10556
Reloadhttps://github.com/angular/angular/issues/10556
Reloadhttps://github.com/angular/angular/issues/10556
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/10556
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/10556
Perhaps Router Resolve shouldn't wait for Observable to Complete?https://github.com/angular/angular/issues/10556#top
https://github.com/jasonaden
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
freq4: criticalhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq4%3A%20critical%22
hotlist: googlehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20google%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Aug 7, 2016https://github.com/angular/angular/issues/10556#issue-169815500
Nexthttps://github.com/angular/angular/issues/10556?timeline_page=1
syndicatedshannonhttps://github.com/syndicatedshannon
on Aug 7, 2016https://github.com/angular/angular/issues/10556#event-747772507
alxhubhttps://github.com/alxhub
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Aug 9, 2016https://github.com/angular/angular/issues/10556#event-750605275
vsavkinhttps://github.com/vsavkin
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Aug 9, 2016https://github.com/angular/angular/issues/10556#event-750618431
https://github.com/johnchristopherjones
johnchristopherjoneshttps://github.com/johnchristopherjones
on Aug 17, 2016https://github.com/angular/angular/issues/10556#issuecomment-240284735
John Lindquist's course on building Redux-style Applications with Angular, RxJS, and ngrx/storehttps://egghead.io/courses/building-a-time-machine-with-angular-2-and-rxjs
this guide on RXJShttp://paqmind.com/posts/rxjs-error-and-completed-events-demystified/
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Aug 26, 2016https://github.com/angular/angular/issues/10556#issuecomment-242638599
@johnchristopherjoneshttps://github.com/johnchristopherjones
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Aug 26, 2016https://github.com/angular/angular/issues/10556#issuecomment-242638760
@johnchristopherjoneshttps://github.com/johnchristopherjones
https://github.com/kemsky
kemskyhttps://github.com/kemsky
on Sep 9, 2016https://github.com/angular/angular/issues/10556#issuecomment-245945756
vsavkinhttps://github.com/vsavkin
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
on Oct 10, 2016https://github.com/angular/angular/issues/10556#event-818723203
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Nov 6, 2016https://github.com/angular/angular/issues/10556#issuecomment-258670471
#10412https://github.com/angular/angular/pull/10412
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Nov 7, 2016https://github.com/angular/angular/issues/10556#issuecomment-258723272
#10412https://github.com/angular/angular/pull/10412
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Nov 7, 2016https://github.com/angular/angular/issues/10556#issuecomment-258831875
@DzmitryShylovichhttps://github.com/DzmitryShylovich
#10412https://github.com/angular/angular/pull/10412
jasonadenhttps://github.com/jasonaden
on Jun 5, 2017https://github.com/angular/angular/issues/10556#event-1110055064
naomiblackhttps://github.com/naomiblack
hotlist: googlehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20google%22
on Sep 23, 2017https://github.com/angular/angular/issues/10556#event-1262203485
https://github.com/swftvsn
swftvsnhttps://github.com/swftvsn
on Oct 27, 2017https://github.com/angular/angular/issues/10556#issuecomment-339888422
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/10556#event-1437655278
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Oct 17, 2019https://github.com/angular/angular/issues/10556#issuecomment-543162644
#4https://github.com/angular/angular/issues/4
@Airbladerhttps://github.com/Airblader
summaryhttps://github.com/angular/angular/issues/10556#issuecomment-440187934
#4https://github.com/angular/angular/issues/4
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Oct 17, 2019https://github.com/angular/angular/issues/10556#issuecomment-543168632
summaryhttps://github.com/angular/angular/issues/10556#issuecomment-440187934
https://github.com/gabrieltbmaestro
gabrieltbmaestrohttps://github.com/gabrieltbmaestro
on Oct 31, 2019https://github.com/angular/angular/issues/10556#issuecomment-548556865
#5https://github.com/angular/angular/issues/5
#5https://github.com/angular/angular/issues/5
angular-robothttps://github.com/apps/angular-robot
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
on Jun 4, 2021https://github.com/angular/angular/issues/10556#event-4843526846
https://github.com/atscott
atscotthttps://github.com/atscott
on Jul 23, 2021https://github.com/angular/angular/issues/10556#issuecomment-885941781
runGuardsAndResolvershttps://angular.io/api/router/Route#runGuardsAndResolvers
#42953https://github.com/angular/angular/issues/42953
#42953https://github.com/angular/angular/issues/42953
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 23, 2021https://github.com/angular/angular/issues/10556#event-5063320280
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Jul 23, 2021https://github.com/angular/angular/issues/10556#issuecomment-885943808
…https://github.com/angular/angular/issues/10556
https://angular.io/api/router/Route#runGuardsAndResolvershttps://angular.io/api/router/Route#runGuardsAndResolvers
#42953https://github.com/angular/angular/issues/42953
#42953https://github.com/angular/angular/issues/42953
#42953https://github.com/angular/angular/issues/42953
#42953https://github.com/angular/angular/issues/42953
#10556 (comment)https://github.com/angular/angular/issues/10556#issuecomment-885941781
https://github.com/notifications/unsubscribe-auth/AAG47RD2WZIDJ5PFCSTX6ZTTZHTJNANCNFSM4CL2KY6Ahttps://github.com/notifications/unsubscribe-auth/AAG47RD2WZIDJ5PFCSTX6ZTTZHTJNANCNFSM4CL2KY6A
https://github.com/gjensen-gomeyra
gjensen-gomeyrahttps://github.com/gjensen-gomeyra
on Jul 26, 2021https://github.com/angular/angular/issues/10556#issuecomment-886938563
@atscotthttps://github.com/atscott
#42953https://github.com/angular/angular/issues/42953
https://github.com/atscott
atscotthttps://github.com/atscott
on Jul 26, 2021https://github.com/angular/angular/issues/10556#issuecomment-886943866
@gjensen-gomeyrahttps://github.com/gjensen-gomeyra
#42953https://github.com/angular/angular/issues/42953
https://github.com/greggbjensen
greggbjensenhttps://github.com/greggbjensen
on Jul 26, 2021https://github.com/angular/angular/issues/10556#issuecomment-886948880
@atscotthttps://github.com/atscott
https://github.com/syndicatedshannon
syndicatedshannonhttps://github.com/syndicatedshannon
on Aug 22, 2021https://github.com/angular/angular/issues/10556#issuecomment-903278473
@greggbjensenhttps://github.com/greggbjensen
@greggbjensenhttps://github.com/greggbjensen
@atscotthttps://github.com/atscott
@greggbjensenhttps://github.com/greggbjensen
#42953https://github.com/angular/angular/issues/42953
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 22, 2021https://github.com/angular/angular/issues/10556#issuecomment-925071004
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 22, 2021https://github.com/angular/angular/issues/10556#event-5344311990
JeanMechehttps://github.com/JeanMeche
on Apr 27, 2026https://github.com/angular/angular/issues/10556#event-24913300910
JeanMechehttps://github.com/JeanMeche
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 27, 2026https://github.com/angular/angular/issues/10556#event-24913432140
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/10556
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/10556
jasonadenhttps://github.com/jasonaden
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
freq4: criticalhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq4%3A%20critical%22
hotlist: googlehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20google%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.