I’ve noticed that Apollo does its work on the Main thread, which is causing a UI hiccup in my app (the app freezes briefly) while Apollo processes the response. Note: this hiccup doesn’t happen for all calls, I’m guessing it just happens on larger responses. This happens even though I provide a background queue (e.g., .global()) to the client.fetch(query:queue:)
How can I avoid this? I’ve moved all the code before and after my client.fetch call to a background thread, but YOUR Apollo library is still using the main thread and blocking.
Am I doing something wrong? Can I avoid this?
Thanks