relay-runtime 0.0.0-main-186c917a → 0.0.0-main-ba0b469b
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 +8 -0
- package/package.json +1 -1
- package/relay-runtime-experimental.js +1 -1
- package/relay-runtime-experimental.min.js +1 -1
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/OperationExecutor.js.flow +8 -1
- package/store/RelayStoreTypes.js.flow +12 -0
|
@@ -773,6 +773,10 @@ class Executor<TMutation: MutationParameters> {
|
|
|
773
773
|
_processResponses(
|
|
774
774
|
responses: $ReadOnlyArray<GraphQLResponseWithData>,
|
|
775
775
|
): $ReadOnlyArray<RelayResponsePayload> {
|
|
776
|
+
this._log({
|
|
777
|
+
name: 'execute.normalize.start',
|
|
778
|
+
operation: this._operation,
|
|
779
|
+
});
|
|
776
780
|
if (this._optimisticUpdates !== null) {
|
|
777
781
|
this._optimisticUpdates.forEach(update => {
|
|
778
782
|
this._getPublishQueueAndSaveActor().revertUpdate(update);
|
|
@@ -801,7 +805,10 @@ class Executor<TMutation: MutationParameters> {
|
|
|
801
805
|
relayPayload,
|
|
802
806
|
this._updater,
|
|
803
807
|
);
|
|
804
|
-
|
|
808
|
+
this._log({
|
|
809
|
+
name: 'execute.normalize.end',
|
|
810
|
+
operation: this._operation,
|
|
811
|
+
});
|
|
805
812
|
return relayPayload;
|
|
806
813
|
});
|
|
807
814
|
}
|
|
@@ -695,6 +695,16 @@ export type ExecuteCompleteLogEvent = {
|
|
|
695
695
|
+executeId: number,
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
+
export type ExecuteNormalizeStart = {
|
|
699
|
+
+name: 'execute.normalize.start',
|
|
700
|
+
+operation: OperationDescriptor,
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
export type ExecuteNormalizeEnd = {
|
|
704
|
+
+name: 'execute.normalize.end',
|
|
705
|
+
+operation: OperationDescriptor,
|
|
706
|
+
};
|
|
707
|
+
|
|
698
708
|
export type StoreDataCheckerStartEvent = {
|
|
699
709
|
+name: 'store.datachecker.start',
|
|
700
710
|
+selector: NormalizationSelector,
|
|
@@ -801,6 +811,8 @@ export type LogEvent =
|
|
|
801
811
|
| ExecuteAsyncModuleLogEvent
|
|
802
812
|
| ExecuteErrorLogEvent
|
|
803
813
|
| ExecuteCompleteLogEvent
|
|
814
|
+
| ExecuteNormalizeStart
|
|
815
|
+
| ExecuteNormalizeEnd
|
|
804
816
|
| StoreDataCheckerStartEvent
|
|
805
817
|
| StoreDataCheckerEndEvent
|
|
806
818
|
| StorePublishLogEvent
|