Skip to content

Commit

Permalink
Add log events
Browse files Browse the repository at this point in the history
Reviewed By: captbaritone

Differential Revision: D70283658

fbshipit-source-id: 43b1a814bd20832703716d7de72b59b62e2bb66e
  • Loading branch information
monicatang authored and facebook-github-bot committed Feb 28, 2025
1 parent ab3b117 commit c640e2e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/relay-runtime/store/RelayStoreTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,12 +786,31 @@ export type UseFragmentSubscriptionMissedUpdates = {
+hasDataChanges: boolean,
};

/**
* This event is logged when two strong objects share the same id,
* but have different types, resulting in an collision in the store.
*/
export type IdCollisionTypenameLogEvent = {
+name: 'idCollision.typename',
};

/**
* This event is logged when a response contains fields with different
* values but which have the same corresponding id, resulting in a
* collision in the store.
*/
export type IdCollisionFieldLogEvent = {
+name: 'idCollision.field',
};

export type LogEvent =
| SuspenseFragmentLogEvent
| SuspenseQueryLogEvent
| QueryResourceFetchLogEvent
| QueryResourceRetainLogEvent
| FragmentResourceMissingDataLogEvent
| IdCollisionTypenameLogEvent
| IdCollisionFieldLogEvent
| PendingOperationFoundLogEvent
| NetworkInfoLogEvent
| NetworkStartLogEvent
Expand Down

0 comments on commit c640e2e

Please sign in to comment.