TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Netflix: Falcor.js a JavaScript library for efficient data fetching

2 pointsby jdavidalmost 10 years ago

3 comments

WorldMakeralmost 10 years ago
This seems interesting. Given Netflix&#x27;s admitted love of RX [Reactive Extensions] I&#x27;m somewhat curious if there is a design reason that this uses Promises instead of (RxJS&#x2F;Bacon&#x2F;...) Observables. At first skim this seems like it could be even more useful as an Observable model.<p>I&#x27;m also curious if there is a design reason they aren&#x27;t using ES5 defineProperty&#x2F;ES6 property syntax over get()&#x2F;set().
fredkellyalmost 10 years ago
This looks a lot like Facebook&#x27;s Relay&#x2F;GraphQL [1], interested to hear how the two compare?<p>[1] <a href="http:&#x2F;&#x2F;facebook.github.io&#x2F;react&#x2F;blog&#x2F;2015&#x2F;02&#x2F;20&#x2F;introducing-relay-and-graphql.html" rel="nofollow">http:&#x2F;&#x2F;facebook.github.io&#x2F;react&#x2F;blog&#x2F;2015&#x2F;02&#x2F;20&#x2F;introducing-...</a>
jhusainover 9 years ago
As a matter of fact, falcor returns a Model response which inherits from observable and adds a then() method to it. That means that you can also call subscribe. If you call subscribe, you can cancel the request using the subscription return from the subscribe method. If you call then, it returns a Promise.