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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
does your
getRelayEnvironment
look like this: createRelayEnvironment?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
andusePreloadedQuery
methods along withEntryPointContainer
from Relay.