Changing the subscribe function identity can cause unnecessary unsubscribe and resubscribe work. Defining it outside the component is often simpler.