Netflix: Falcor.js a JavaScript library for efficient data fetching(netflix.github.io)
netflix.github.io
Netflix: Falcor.js a JavaScript library for efficient data fetching
https://netflix.github.io/falcor/
3 comments
This looks a lot like Facebook's Relay/GraphQL [1], interested to hear how the two compare?
[1] http://facebook.github.io/react/blog/2015/02/20/introducing-...
[1] http://facebook.github.io/react/blog/2015/02/20/introducing-...
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.
I'm also curious if there is a design reason they aren't using ES5 defineProperty/ES6 property syntax over get()/set().