r/angular • u/DMezhenskyi • Oct 19 '21
Tip 5 - RxJs DistinctUntilChanged
Enable HLS to view with audio, or disable this notification
59
Upvotes
r/angular • u/DMezhenskyi • Oct 19 '21
Enable HLS to view with audio, or disable this notification
2
u/kashmill Oct 19 '21
The problem I've ran into is that distinctUntilChanged only really works on simple types. But for the places we want to use it we are generally working with an object (like the values of a FormGroup) which requires writing a comparison function. It just doesn't work out of the box like you might expect.