mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
withList Loading improved
Follows the recommanded loading from Apollo. See the Apollo docs about `[data.networkstatus](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-networkStatus)` and `[data.loading](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-loading)`
This commit is contained in:
parent
94fc8fffe9
commit
b6669a3f7e
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ const withList = (options) => {
|
|||
results = props.data[listResolverName],
|
||||
totalCount = props.data[totalResolverName],
|
||||
networkStatus = props.data.networkStatus,
|
||||
loading = props.data.networkStatus === 1,
|
||||
loading = props.data.loading,
|
||||
loadingMore = props.data.networkStatus === 2,
|
||||
error = props.data.error,
|
||||
propertyName = options.propertyName || 'results';
|
||||
|
|
Loading…
Add table
Reference in a new issue