Visitar URL original
Add execute.unsubsribe logging · meta/relay@4598427 · GitHub
Skip to content

Commit 4598427

Browse files
tyao1facebook-github-bot
authored andcommitted
Add execute.unsubsribe logging
Reviewed By: evanyeung Differential Revision: D68291007 fbshipit-source-id: 002046a49762940b94145686c929ed932f02e009
1 parent c804d2e commit 4598427

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/relay-runtime/store/OperationExecutor.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ class Executor<TMutation: MutationParameters> {
245245
cacheConfig: this._operation.request.cacheConfig ?? {},
246246
});
247247
},
248+
unsubscribe: () => {
249+
this._log({
250+
name: 'execute.unsubscribe',
251+
executeId: this._executeId,
252+
});
253+
},
248254
});
249255

250256
if (

‎packages/relay-runtime/store/RelayStoreTypes.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,11 @@ export type ExecuteCompleteLogEvent = {
684684
+executeId: number,
685685
};
686686

687+
export type ExecuteUnsubscribeLogEvent = {
688+
+name: 'execute.unsubscribe',
689+
+executeId: number,
690+
};
691+
687692
export type ExecuteNormalizeStart = {
688693
+name: 'execute.normalize.start',
689694
+operation: OperationDescriptor,
@@ -800,6 +805,7 @@ export type LogEvent =
800805
| ExecuteAsyncModuleLogEvent
801806
| ExecuteErrorLogEvent
802807
| ExecuteCompleteLogEvent
808+
| ExecuteUnsubscribeLogEvent
803809
| ExecuteNormalizeStart
804810
| ExecuteNormalizeEnd
805811
| StoreDataCheckerStartEvent

0 commit comments

Comments
 (0)