Closed billdami closed 2 years ago
@josemarluedke is the behavior I'm expecting here jive with what the library actually should be doing? This is only real issue barring my team from being able to use glimmer-apollo in our apps.
I've tried initializing queries in different contexts (on a controller, in a component, etc), and also @track
ing the query property, but didnt seem to make any difference.
I'm not to familiar with the Observable logic, but that should be triggering template-aware state changes when loading
and networkStatus
change internally right? Or does this indicate that those updates only trigger when query requests are actually finished? https://github.com/josemarluedke/glimmer-apollo/blob/main/packages/glimmer-apollo/src/-private/query.ts#L130
Ignore this! Totally missed the bit in the docs about having to enable notifyOnNetworkStatusChange
🤦 I just assumed that would be the default behavior.
I have a
useQuery()
instance in a component (Ember app, with Glimmer components), and attempting to update the template to show a spinner when the query is "refetching" after the initial render/query request completes. However, it does not appear that theloading
ornetworkStatus
values change when a new request is fired viarefetch()
. For example, I'm trying to do the following: