how to pass useInitialLoading option to code-generated apollo-angular watch query? #5729
Unanswered
jmcmichael
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for developing such a useful library!
The UI I'm developing needs to show loading indicators for various components, and I'm having difficulty figuring out how to get the intial queryRef to emit a loading status of
true
. Currently, it only appears to emit an event when the query completes, when the loading status isfalse
. Thus the UI loading indicators that only display whenloading == true
are never shown.The apollo-angular project recently merged a PR that allows one to include
useInitialLoading
as an option. However, I have been unable to figure out how to pass this option through to the underlying apollo watchQuery function. This issue thread contains some possible workarounds which I will try, but it would be nice if it were possible to just pass options when callingwatch
.Beta Was this translation helpful? Give feedback.
All reactions