René's URL Explorer Experiment


Title: Unclear usage of effect to retrieve data in async way · Issue #54047 · angular/angular · GitHub

Open Graph Title: Unclear usage of effect to retrieve data in async way · Issue #54047 · angular/angular

X Title: Unclear usage of effect to retrieve data in async way · Issue #54047 · angular/angular

Description: Describe the problem that you experienced I'm really enthusiastic about the new features in angular 17, but I'm unsure on how to use the new effects. It seems the new way to make an application reactive (without the need for rxjs mostly)...

Open Graph Description: Describe the problem that you experienced I'm really enthusiastic about the new features in angular 17, but I'm unsure on how to use the new effects. It seems the new way to make an application rea...

X Description: Describe the problem that you experienced I'm really enthusiastic about the new features in angular 17, but I'm unsure on how to use the new effects. It seems the new way to make an applica...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unclear usage of effect to retrieve data in async way","articleBody":"### Describe the problem that you experienced\r\n\r\nI'm really enthusiastic about the new features in angular 17, but I'm unsure on how to use the new effects. It seems the new way to make an application reactive (without the need for rxjs mostly), but if I look at the official [angular.dev](https://angular.dev) explanation on effect it states \"Effects are rarely needed in most application code\" which feels a bit strange. Does this mean angular prefers us to stick with rxjs streams for reactivity and fetching data?\r\nOn the other hand I find plenty of other examples on blogs/X/... where effect are used to initiate retrieving data and setting other signals their value (since it's an async process writing to signal just works without errors there). Even initiatives like [computedAsync](https://ngxtension.netlify.app/utilities/signals/computed-async/) are based on that pattern. If we work like that, are we ignoring angular best practices? Or is this allowed/the future of reactivity in angular?\r\n\r\n### Enter the URL of the topic with the problem\r\n\r\nhttps://angular.dev/guide/signals\r\n\r\n### Describe what you were looking for in the documentation\r\n\r\nProbably I overlooked, but on angular.dev I find no example at all on how to trigger an http get call to retrieve data and how to store that data (in signals).\r\n\r\n### Describe the actions that led you to experience the problem\r\n\r\nUpgrading and adapting to angular 17, but became confused by official statements on angular.dev and examples elsewhere (because of the lack of examples on angular.dev itself).\r\n\r\n### Describe what you want to experience that would fix the problem\r\n\r\nA clear statement from the angular team on this topic :)\r\n\r\n### Provide any additional information here in as much as detail as you can\r\n\r\nI've setup a stackblitz to show 3 different approaches I see now, probably we can find even more variations, but really wondering what to choose/which is the 'default angular way'...\r\nhttps://stackblitz.com/edit/stackblitz-starters-bg7wyc?file=src%2Fmain.ts\r\n\r\n","author":{"url":"https://github.com/TarsisDragomir","@type":"Person","name":"TarsisDragomir"},"datePublished":"2024-01-24T09:23:06Z","url":"https://github.com/angular/angular/issues/54047"}

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:678349b6-e918-b8ed-8357-a7f7cb779333
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBE8:3DA1E8:1103A3F:169F410:6B01E573
html-safe-nonceedc7556bcbe6ec66b117d858b011388b6cd831af59242175d060e314c51ecddc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkU4OjNEQTFFODoxMTAzQTNGOjE2OUY0MTA6NkIwMUU1NzMiLCJ2aXNpdG9yX2lkIjoiMjA2NDUzMjkzMjA2Nzk3NjU2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca6e1974147000b1c13d9cdf044b5f7e37c0d477bef5518839a9187f43dfa0b76
hovercard-subject-tagissue:2097810129
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/54047/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c3bd5c1f2526ffc0bdf2a0d0aa861042ab8e97418ac503a49b155aed7f299e0b/angular/angular/issues/54047
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c3bd5c1f2526ffc0bdf2a0d0aa861042ab8e97418ac503a49b155aed7f299e0b/angular/angular/issues/54047
og:image:altDescribe the problem that you experienced I'm really enthusiastic about the new features in angular 17, but I'm unsure on how to use the new effects. It seems the new way to make an application rea...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTarsisDragomir
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/54047#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F54047
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%2F54047
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/54047
Reloadhttps://github.com/angular/angular/issues/54047
Reloadhttps://github.com/angular/angular/issues/54047
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests143 (143)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/54047
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/54047
Unclear usage of effect to retrieve data in async wayhttps://github.com/angular/angular/issues/54047#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: reactivityWork related to fine-grained reactivity in the core frameworkhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20reactivity%22
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/TarsisDragomir
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issue-2097810129
angular.devhttps://angular.dev
computedAsynchttps://ngxtension.netlify.app/utilities/signals/computed-async/
https://angular.dev/guide/signalshttps://angular.dev/guide/signals
https://stackblitz.com/edit/stackblitz-starters-bg7wyc?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-bg7wyc?file=src%2Fmain.ts
https://github.com/TarsisDragomir
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1907748320
@pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
@eneajahohttps://github.com/eneajaho
https://github.com/HammamBM
HammamBMhttps://github.com/HammamBM
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1907776983
@inputhttps://github.com/input
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 24, 2024https://github.com/angular/angular/issues/54047#event-11582025135
https://github.com/TarsisDragomir
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1907810827
@HammamBMhttps://github.com/HammamBM
https://github.com/HammamBM
HammamBMhttps://github.com/HammamBM
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1907832613
@TarsisDragomirhttps://github.com/TarsisDragomir
@inputhttps://github.com/input
https://github.com/TarsisDragomir
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1907857473
https://github.com/Hafnernuss
Hafnernusshttps://github.com/Hafnernuss
on Jan 24, 2024https://github.com/angular/angular/issues/54047#issuecomment-1908036223
Rxjs Interophttps://angular.dev/guide/signals/rxjs-interop
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: reactivityWork related to fine-grained reactivity in the core frameworkhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20reactivity%22
on Jan 24, 2024https://github.com/angular/angular/issues/54047#event-11584808263
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jan 24, 2024https://github.com/angular/angular/issues/54047#event-11584808660
https://github.com/TarsisDragomir
TarsisDragomirhttps://github.com/TarsisDragomir
on Jan 26, 2024https://github.com/angular/angular/issues/54047#issuecomment-1911592064
stackblitzhttps://stackblitz.com/edit/stackblitz-starters-bg7wyc?file=src%2Fmain.ts
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%22
on May 14, 2024https://github.com/angular/angular/issues/54047#event-12799847517
https://github.com/Zooce
Zoocehttps://github.com/Zooce
on Jun 2, 2024https://github.com/angular/angular/issues/54047#issuecomment-2143949642
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Oct 31, 2024https://github.com/angular/angular/issues/54047#issuecomment-2450613005
#58255https://github.com/angular/angular/pull/58255
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 31, 2024https://github.com/angular/angular/issues/54047#event-15044776854
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 1, 2024https://github.com/angular/angular/issues/54047#issuecomment-2509487516
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 1, 2024https://github.com/angular/angular/issues/54047#event-15482800705
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/54047
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/54047
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: reactivityWork related to fine-grained reactivity in the core frameworkhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20reactivity%22
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.