Skip to content

Commit

Permalink
Merge pull request #26 from tikalk/fix_edit_user_reactivity_changes
Browse files Browse the repository at this point in the history
#17 Fix edit user reactivity changes
  • Loading branch information
JakobSinwani authored Feb 9, 2023
2 parents 61a2387 + 100e3f8 commit 9b50a79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/apollo-client.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import {
ApolloClient,
ApolloLink,
DefaultOptions,
HttpLink,
InMemoryCache,
} from '@apollo/client';

export const cache = new InMemoryCache();

const defaultOptions: DefaultOptions = {
watchQuery: {
fetchPolicy: 'no-cache',
errorPolicy: 'ignore',
},
};
function startApollo() {
const DS_HOST =
process.env.NODE_ENV === 'production' ? '10n1.tikalk.dev' : 'localhost';
Expand Down Expand Up @@ -35,6 +42,7 @@ function startApollo() {
const client = new ApolloClient({
link: ApolloLink.from([cleanTypeName, httpLink]),
cache,
defaultOptions,
});
return client;
}
Expand Down

0 comments on commit 9b50a79

Please sign in to comment.