Closed olso closed 4 years ago
Nevermind, I was doing some unnecessary extraction...
export const collectRelayData = async (environment: Environment): Promise<{} | null> => {
// @ts-ignore
const { relaySSRMiddleware } = environment;
const relayCache = await relaySSRMiddleware.getCache();
const relayData =
relayCache && relayCache[0] && relayCache[0][1] && relayCache[0][1].data
? relayCache[0][1].data
: null;
return relayCache; // correct
// return relayData; // wrong
};
Thanks for this project btw!
result
I don't really understand whats going on, but, I'm going into debugger mode now