The observer pattern is a widely used behavioral design pattern that allows objects to subscribe and receive updates about events happening in the object they are observing. It achieves loose coupling between the observer and observable. The key components of the observer pattern are the observable (object being observed) and the observer (object interested in state changes of the observable).

3m read timeFrom dev.to
Post cover image
Table of contents
Mental ModelCode ImplementationUseful links

Sort: