Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Texting
  • Loading branch information
rolandszoke committed Sep 19, 2019
commit 9b2aabdf4d04c9bee2ca1ae5ea67aba1448dfebc
6 changes: 3 additions & 3 deletions src/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { onError } from 'apollo-link-error';
import { ApolloLink } from 'apollo-link';

const globalLoader = new ApolloLink((operation, forward) => {
// Use mobx or redux (or some other state manager library) for a global store
console.log('add loading count');
// Use Mobx or Redux (or other) for a global state manager
console.log('increment loading count');
return forward(operation).map((response) => {
console.log('remove loading count');
console.log('decrement loading count');
return response;
});
});
Expand Down