style: auto format whole project

This commit is contained in:
Ali BARIN
2022-11-05 23:57:33 +01:00
parent e338770e57
commit 475f24f661
199 changed files with 2421 additions and 1839 deletions

View File

@@ -14,17 +14,19 @@ const client = new ApolloClient({
defaultOptions: {
watchQuery: {
fetchPolicy: 'cache-and-network',
}
}
},
},
});
export function mutateAndGetClient(options: CreateClientOptions): typeof client {
export function mutateAndGetClient(
options: CreateClientOptions
): typeof client {
const { onError, token } = options;
const link = createLink({ uri: appConfig.graphqlUrl, token, onError });
client.setLink(link);
return client;
};
}
export default client;