mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Revert b6669a3
and add loadingInitial
prop to be more explicit
This commit is contained in:
parent
55d34bd328
commit
975155a843
1 changed files with 3 additions and 1 deletions
|
@ -154,7 +154,8 @@ const withList = (options) => {
|
|||
results = props.data[listResolverName],
|
||||
totalCount = props.data[totalResolverName],
|
||||
networkStatus = props.data.networkStatus,
|
||||
loading = props.data.loading,
|
||||
loadingInitial = props.data.networkStatus === 1,
|
||||
loading = props.data.networkStatus === 1,
|
||||
loadingMore = props.data.networkStatus === 2,
|
||||
error = props.data.error,
|
||||
propertyName = options.propertyName || 'results';
|
||||
|
@ -168,6 +169,7 @@ const withList = (options) => {
|
|||
// see https://github.com/apollostack/apollo-client/blob/master/src/queries/store.ts#L28-L36
|
||||
// note: loading will propably change soon https://github.com/apollostack/apollo-client/issues/831
|
||||
loading,
|
||||
loadingInitial,
|
||||
loadingMore,
|
||||
[ propertyName ]: results,
|
||||
totalCount,
|
||||
|
|
Loading…
Add table
Reference in a new issue