Muhammad Nabeel
Nuxt Apollo useAsyncQuery not executing on render
@grelle Did you find a solution for this? I am having the same issue and I have been breaking my head over this for many days without any luck. I tried calling my api from nuxt's server side (/api/...), but that also doesn't work. I am basically calling the api from a route middleware where I check if the user's session is valid or not. If it's valid, he is allowed to go to a protected route, otherwise signin. In SSR mode, the session api fails with error:
ERROR [Apollo] Error fetching session: fetch failed
. Because of this, if user refreshes the page, they see login page for an instance and then see the actual page when session is retrieved successfully.10 replies