Comments (4)
Hi, the subject of explicit effect dependencies was already discussed here: #50916.
from angular.
I know, it's discussed in many places directly or indirectly.
But in #50916, the idea is to modify the current effect function... which I personally don't like as an approach. Let's keep effect as it is.
What I'd ideally like to discuss is the following:
- is it really true that effects can be rarely used?
- what are the official counterarguments for not introducing a watch func?
As I tried to report above, my view is that the usage of effects_untrack is just kind of hidden and highly necessary (and used a lot) for common needs.
It's just that we're still mixing signals / observables... so it's not really clear. But with only signals, I have the feeling the story would be different.
IMO effects would turn (almost) unnecessary with the addition of a watch func.
from angular.
@mauriziocescon this issue essentially re-iterates what was already described in #55027. We hear you but I don't think an additional issue gets us any closer to the solution - what you are describing is well understood.
Let's centralize the discussion in #55027 which represents a real-life use-case.
from angular.
Ok, my bad... just started integrating signals and I find myself using the pattern above in many places! 😂
Gonna create a wrapper for now... 😂
from angular.
Related Issues (20)
- optionalChainNotNullable does not seems to work HOT 6
- MathML is unsupported HOT 9
- Router config "enableViewTransitions" and "Aw, Snap!" error HOT 3
- "ng test" : Unhandled promise rejection: Error: Injector has already been destroyed. HOT 1
- Template parser produces inaccurate source spans when `preserveWhitespaces` is false or omitted HOT 3
- Async SVG files could not be loaded when the zone.js is present as peer dependency HOT 2
- Angular SSG: Incompatibility between withXsrfConfiguration( ) (HttpClient) & Relative Paths in SSG HOT 2
- Angulars Service Worker - "beforePushNotification" HOT 1
- input signal effects are not run when attaching a directive to an IonButton HOT 3
- Mejorar uso de Pipes HOT 1
- Computed signals and Effects should produce runtime warning if dependencies reaches zero HOT 1
- Dead area for scrolling: Column for right hand menu HOT 1
- More user testing of angular.io HOT 4
- URL containing space fails to be fetched during prerender phase HOT 1
- Help me - could not resolve module angular/node_modules/mermaid/dist/mermaid.js HOT 4
- angular tutorial image file missing HOT 1
- dispatchEvent won't call FormGroup.valueChanges in test HOT 4
- Add signals reflecting state of the AbstractControl HOT 3
- Add WritableComputed to allow computed with write operations HOT 5
- Error Message for missing [ngModelOptions]="{standalone: true}" entry dont show line in code where it is missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.