Andrew Scott (@AScottAngular) profile picture
Joined April 2022
Photo by Andrew Scott (@AScottAngular)Photo by Andrew Scott (@AScottAngular)
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Replying to @zoaibdev
If you’re trying to observe when Angular runs the application synchronization, you might consider afterRender instead.
1
1
96
Replying to @zoaibdev
Yes, this’ll be due to the “fine grained reactivity”. ngDoCheck runs when the parent is refreshed. ChangeDetectorRef.markForCheck (and listeners) mark everything up to the root for check while signals will skip straight to the component with the signal read.
1
1
93
In v18, you also won’t need zone.run anymore to trigger change detection when you set a signal outside the zone. This works even for apps using ZoneJS
3
113
We’ll have a better picture of this as we gather feedback during experimental and dev preview phases. The path now is roughly: use OnPush, enable zone event coalescing, enable run coalescing, remove all NgZone.onMicrotaskEmpty/onStable uses. SSR is a bit more additional work.
1
82
Yes. We want to/will eventually have this in some form (ability to not automatically call markForCheck when a listener is triggered)
1
69
You’re exactly correct. This was done because we want the transition from OnPush to Zoneless to be as easy as possible. We want to/will eventually have an option that does not automatically mark for check when a listener is called.
1
4
104
This means that ZoneJS has some more behaviors than just running change detection. And zoneless needs a replacement for those "other features". The concept of "stability" needs a replacement in Zoneless as well (i.e. for SSR).
4
213
Sometimes errors might happen that you can resolve in a different window, such as an expired authentication cookie. Logging back in resolves the issue and in this case you could just refresh the page and it would load the page that was originally attempted instead of 404 again.
62
To be fair, any change to the exact timing of change detection can have this effect. Coalescing will be the default for new apps in v18.
3
97
On its own, the circular update isn’t a problem. If you had a condition around the update to only update it sometimes or it gets updated to a value that’s equal to the previous one. The problem is that the cycle is never broken.
1
3
132
Replying to @SimonBitwise
👍 Okay, yea. It’s great to see the excitement and enthusiasm here. I just wanted to be sure expectations were appropriate so you aren’t disappointed with our ability to support you through the process.
3
95
Replying to @SimonBitwise
To be clear about the Zoneless API: it is _not_ developer preview. Things being broken is entirely expected and we have no commitment to resolving any issues you encounter in a timely manner.
1
3
109
Replying to @SimonBitwise
To be honest, I can't say for sure. The repo in its current state is using 17.1.0. When I update things to use 17.2.0-next.1, it does run change detection with the updated input. As far as I can tell, everything's WAI.
2
1
89
Replying to @SimonBitwise
That version should have the required change. Do you have a reproduction? Kind of hard to tell what’s happening in the screenshot.
1
67
Replying to @SimonBitwise
What version of Angular are you using? This required github.com/angular/angular/c… which has only been available since 17.1.2. But also it looks like you're creating the component a second time in each test when you have it in beforeEach already. Is that intended?
1
109
Yes, but that’s actually kind of already the case. If you use OnPush in the components of your app, everything below them need to also follow OnPush semantics correctly or your app components will prevent the Default components in libraries from working.
3
95
The first example from the blog post felt satisfying and shows how far the framework has come in only the past few releases. stackblitz.com/edit/stackbli… Standalone, self closing tags, input transform, tree shakable router features, input binding, view transitions, styles string.
1
3
105
Thanks! We tried hard to strike a balance between power and simplicity and I think we found it!
1
2
84