Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const TodoOffline = ({relay, user, retry}) => {
const offlineState = useOffline();
const requests = [];
Object.values(offlineState).forEach(offlineRecord => {
requests.push(offlineRecord);
/*
const { request } = payload;
const snapshot = RelayReader.read(request.sinkPublish, request.operation.fragment);
this work only with optimisticResponse
*/
});
const execute = () => {
relay.environment.getStoreOffline().execute();
};