DEV Community

Discussion on: Relay and SSR using createOperationDescriptor

Collapse
 
marais profile image
Marais Rossouw • Edited

This is an adaptation of my getRelayEnvironment function: gist.github.com/maraisr/32a7b0c1a4....

I'd like to change the fetch function though to return an Observable though, so that it can abort fetch's when components un-mount.

Outside that; the withData HoC outlined in my article is still very much the case for us.

BUT! I will be updating this article in the next coming month to utilize the new preloadQuery and usePreloadedQuery methods along with EntryPointContainer from Relay.