A simple rxjs-powered Higher Order Component to bind React views to the Falcor graph.
The intent here is to allow for GraphQL/Relay-esque declarative data fetching at the component level, without requiring an entire framework for support. This means the HOC bindings should play well along side other data model frameworks like Redux.
The HOC works by running queries against a falcor model, and merging the result stream into a component's props, specifically by injecting the props graphFragment
(containing the query result) and graphFragmentStatus
(containing the string next
, complete
or error
).
const TodosList = ({ from, to, graphFragment, graphFragmentStatus }) => {