Is it possible to configure a timeout for the Apollo Link REST calls? I tried to use the Apollo Link Timeout, but it is only working for the standard Graphql calls.
const timeoutLink = new ApolloLinkTimeout(Number(process.env.REACT_APP_TIMEOUT));
const restLink = new RestLink({
credentials: 'include',
uri: process.env.REACT_APP_API_URL,
});
const httpLink = new HttpLink({
credentials: 'include',
uri: process.env.REACT_APP_GRAPHQL_URL,
});
export const apolloClient = new ApolloClient({
link: ApolloLink.from([authLink, errorLink, timeoutLink, restLink, httpLink]),
connectToDevTools: true,
cache: localCache,
resolvers: localResolvers,
assumeImmutableResults: true,
});
Hi,
Is it possible to configure a timeout for the Apollo Link REST calls? I tried to use the Apollo Link Timeout, but it is only working for the standard Graphql calls.
My configuration is this:
Am I doing something wrong?
Thanks,
Felipe
/label question