rxjs vs lodash

http://frontendinsights.com/lodash-asynchronous-data-what-is-rxjs/

It doesn’t make sense to follow 2 different idioms of rxjs and lodash in same app. Also, you’ll have to use async and sync collections in the same flow so orchestration is possible only if you use single library.

Hence, it’s best to simply wrap static collections into observables as well and treat everything as a stream.  For everything where you have an observable, which will mostly be returned by the angular 2 framework, treat is an observable with it’s rxjs operators.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s