I have a weird issue where the Apollo Client tools were not loading even though I am passing the client config into RedwoodProvider <RedwoodProvider graphQLClientConfig={{ connectToDevTools: true }}>
If I went into RedwoodApolloProvider.js
and console logged the graphQLClientConfig
inside of RedwoodApolloProvider
or console logged config
inside of ApolloProviderWithFetchConfig
then the Apollo Client Dev Tools would load as expected, using the Chrome Extension inside Dev Tools. WHile investigating this issue and the strange behavior what I discovered is the extension works as expected when adding or removing a console log is because of hot-reloading. No matter what change I make so long as the site rebuilds I get the Dev Tools like this:
but if I refresh the page then I get this respones, the extension says no client found but the __APOLLO_CLIENT__
on the console works as expected.
Am I doing something wrong, is this the expected behavior or is this an issue as well?