Is there a global loading
flag available anywhere for react-apollo client? I have a “page wrapper” component that i’d like to apply ui effects to after all the child components have received their data.
I have set up apollo with redux so have ready access to the store (http://dev.apollodata.com/react/redux.html)
I could quite easily dispatch
state changes from each component that receives data from apollo but I'd like this page wrapper
component to not have any knowledge of its children nor their queries.
I have investigated using withApollo
- http://dev.apollodata.com/react/higher-order-components.html#withApollo -
but don't see an api for a global is loading
.