apollo-client
Advanced tools
Comparing version 0.4.9 to 0.4.10
"use strict"; | ||
var getFromAST_1 = require('../queries/getFromAST'); | ||
var storeUtils_1 = require('../data/storeUtils'); | ||
var assign = require('lodash.assign'); | ||
@@ -32,3 +33,3 @@ var cloneDeep = require('lodash.clonedeep'); | ||
var field = fieldMap[mergeInfo.fieldIndex]; | ||
data[field.name.value] = result.data[dataKey]; | ||
data[storeUtils_1.resultKeyNameFromField(field)] = result.data[dataKey]; | ||
if (resultArray[childRequestIndex]) { | ||
@@ -35,0 +36,0 @@ assign(resultArray[childRequestIndex].data, data); |
@@ -16,2 +16,3 @@ import { NetworkInterface, createNetworkInterface, addQueryMerging } from './networkInterface'; | ||
data: any; | ||
loading: boolean; | ||
}; | ||
@@ -53,2 +54,3 @@ export declare let fragmentDefinitionsMap: { | ||
data: any; | ||
loading: boolean; | ||
}>; | ||
@@ -88,2 +90,3 @@ mutate: (options: { | ||
data: any; | ||
loading: boolean; | ||
}>; | ||
@@ -90,0 +93,0 @@ reducer(): Function; |
{ | ||
"name": "apollo-client", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -144,2 +144,3 @@ "use strict"; | ||
}), | ||
loading: queryStoreValue.loading, | ||
}; | ||
@@ -458,3 +459,3 @@ if (observer.next) { | ||
_this.removeFetchQueryPromise(requestId); | ||
resolve({ data: resultFromStore }); | ||
resolve({ data: resultFromStore, loading: false }); | ||
}).catch(function (error) { | ||
@@ -461,0 +462,0 @@ _this.store.dispatch({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
254552
3763