We’re starting a new Angular project. Do you reach for provideZonelessChangeDetection(), and what changes about how you write components?
SituationalAngular DeveloperSenior full stack developersenior full stack .net and angularYes, I would reach for provideZonelessChangeDetection() as it optimizes performance in large applications. This approach allows us to manage change detection manually, which can lead to better performance by reducing unnecessary checks. I would write components with a focus on immutable data structures and use observables to trigger updates only when necessary.
In terms of success, I would judge it by measuring performance improvements through metrics like load time and responsiveness. Additionally, I would ensure that the team is comfortable with the new pattern, as it requires a shift in how we handle state and updates. How do you envision the team adapting to this change?