Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}),
});
return response.json();
}
import RelayNetworkLogger from 'relay-runtime/lib/RelayNetworkLogger'
const network = Network.create(RelayNetworkLogger.wrapFetch(fetchQuery, () => ''));
function callbackOffline(type, payload, error) {
//console.log("callbackoffline", type)
//console.log("callbackoffline", payload)
//console.log("callbackoffline", error)
}
const modernEnvironment = EnvironmentIDB.create({ network }, callbackOffline);
const rootElement = document.getElementById('root');
if (rootElement) {
ReactDOM.render(