relay-runtime 0.0.0-main-0298eecb → 0.0.0-main-8be0df84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/experimental.js +1 -1
- package/index.js +1 -1
- package/lib/store/OperationExecutor.js +7 -3
- package/package.json +1 -1
- package/store/OperationExecutor.js.flow +8 -1
package/experimental.js
CHANGED
package/index.js
CHANGED
|
@@ -484,9 +484,13 @@ var Executor = /*#__PURE__*/function () {
|
|
|
484
484
|
variables = followupPayload.variables;
|
|
485
485
|
}
|
|
486
486
|
var selector = createNormalizationSelector(normalizationNode, followupPayload.dataID, variables);
|
|
487
|
-
|
|
488
|
-
data: followupPayload.data
|
|
489
|
-
|
|
487
|
+
var nextResponse = {
|
|
488
|
+
data: followupPayload.data,
|
|
489
|
+
extensions: this._state === 'loading_final' ? {
|
|
490
|
+
is_final: true
|
|
491
|
+
} : undefined
|
|
492
|
+
};
|
|
493
|
+
return this._normalizeResponse(nextResponse, selector, followupPayload.typeName, {
|
|
490
494
|
actorIdentifier: this._actorIdentifier,
|
|
491
495
|
getDataID: this._getDataID,
|
|
492
496
|
log: this._log,
|
package/package.json
CHANGED
|
@@ -750,8 +750,15 @@ class Executor<TMutation: MutationParameters> {
|
|
|
750
750
|
followupPayload.dataID,
|
|
751
751
|
variables,
|
|
752
752
|
);
|
|
753
|
+
const nextResponse: GraphQLResponseWithData = {
|
|
754
|
+
data: followupPayload.data,
|
|
755
|
+
// `is_final` flag needs to be set for processing nested defer and 3D
|
|
756
|
+
// when the server doesn't support streaming
|
|
757
|
+
extensions:
|
|
758
|
+
this._state === 'loading_final' ? {is_final: true} : undefined,
|
|
759
|
+
};
|
|
753
760
|
return this._normalizeResponse(
|
|
754
|
-
|
|
761
|
+
nextResponse,
|
|
755
762
|
selector,
|
|
756
763
|
followupPayload.typeName,
|
|
757
764
|
{
|