'Apollo dev tools not showing any data
The dev tools version is 4, same situation in Chrome as in Firefox. "@apollo/client": "^3.5.7",
const createApolloClient = (authToken) => {
return new ApolloClient({
link: new HttpLink({
uri: "https://api2s.geomar.net.pl/v1/graphql",
headers: {
Authorization: `Bearer ${authToken}`,
},
}),
cache: new InMemoryCache(),
connectToDevTools: true, // should not be necessary but added just in case
defaultOptions: {
watchQuery: {
fetchPolicy: "cache-and-network",
pollInterval: 3000,
},
},
});
};
The application is React + Vitejs, if it makes any difference... No idea where to start any debuging, please help...
Solution 1:[1]
Some other users reported a similar problem in the github project on this issue. I'm curious if this may be what's occurring on your end.
Solution 2:[2]
I could not make it work so I ended up using GraphQL Network Inspector Chrome extension https://chrome.google.com/webstore/detail/graphql-network-inspector/ndlbedplllcgconngcnfmkadhokfaaln
No alternative for Firefox...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | John Vajda |
Solution 2 | oskar333 |