Apollo client stops sending requests
See original GitHub issueI’m developing a web application that uses ApolloClient and ReactApollo to communicate with a qraphql api. On some pages, the apollo client works fine and sends the requests as expected. But on some pages, the client just stops sending requests and the loading
flag is always true. I can see there are no requests in the Network tab in Chrome devtools.
So I started investigating the cause. I kept commenting out different parts of the code until I found the culprit. It’s the jwplayer. If I just comment out the line that initializes the jwplayer, everything works fine.
The jwplayer code is minified so I couldn’t figure out what was going on. Any advice on how to debug this? I’m surprised that external code can affect the way Apollo Client works and prevent it from sending requests.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
Very little - just a few things so that the devtools can find your client. Nothing that would stop the client from working. Might be a good use case for a debugger - set a breakpoint right before firing the query, and then trace it through until something unexpected happens.
Thanks @mdebbar. The PR has been merged and will be released shortly!