4 ms·
I don't know any particular resources. I think the core document is the Runtime Architecture[0]. After that, it really helps to know ES7 Observables, which I l
by linkmotif 8y ago
I don't know any particular resources.
I think the core document is the Runtime Architecture[0]. After that, it really helps to know ES7 Observables, which I learned by studying the little implementation that's included in Relay[1], but apparently is also at the core of Angular. Then you can either use the runtime architecture directly, or the pre-built React components that are included in Relay. If you use the pre-built components, you need to understand the division of labor between the QueryRenderer[2], which fetches data from your server and puts it in the store, and FragmentContainer[3] which lets you render data from the store with React.
[0] https://facebook.github.io/relay/docs/en/runtime-architecture.html https://facebook.github.io/relay/docs/en/runtime-architectur...
[1] https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayObservable.js https://github.com/facebook/relay/blob/master/packages/relay...
[2] https://facebook.github.io/relay/docs/en/query-renderer.html https://facebook.github.io/relay/docs/en/query-renderer.html
[3] https://facebook.github.io/relay/docs/en/fragment-container.html https://facebook.github.io/relay/docs/en/fragment-container....