Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@

function createApolloClient(uri: string) {
const timeoutLink = new ApolloLinkTimeout();
const httpLink = timeoutLink.concat(new HttpLink({ uri, fetch }));
const httpLink = timeoutLink.concat(
new HttpLink({
uri,
fetch: (url, options) => fetch(url, { ...options, cache: 'no-store' }),
}),
);

return new ApolloClient({
link: httpLink,
Expand Down Expand Up @@ -188,7 +193,7 @@
export function getSourceFromSubgraphClient(
subgraphClient: ApolloClient<NormalizedCacheObject>,
): string | null {
const uri = (subgraphClient.link as any).options?.uri;

Check warning on line 196 in packages/arb-token-bridge-ui/src/api-utils/ServerSubgraphUtils.ts

View workflow job for this annotation

GitHub Actions / Check Formatting

Unexpected any. Specify a different type

if (typeof uri === 'undefined') {
return null;
Expand Down
Loading