Apollo query for root routes on the first load
-
I would like to know the reason why apollo queries doesn’t work on Cordova builded app on the first route for routes with path:’/’ or path:’’. More info about my case is here
-
Looks like you found the resolution yourself.
Scott
-
Yes, but I don’t understand why it’s happening:)
-
I’m not sure either. Where is the graphql code? In the layout or the index page component? Was the page working otherwise, i.e. was the index page showing?
Scott
-
I tested it with other queries, and it has the same result. Yes, page was working fine. And it works fine for web, but when you install it to device (I’ve tried Cordova and Capacitor) on the first launch app has this isuue. If you reopen it - everything is fine
-
Strange. I have no experience with Cordova or Capacitor. But, it must be some sort of initialization going on, which is different than in other platforms.
Scott