Skip to content

Commit ba01317

Browse files
committedMar 26, 2025·
Merge branch 'v5' into inp-extended-attribution-from-loaf
2 parents 9746164 + aa4ff21 commit ba01317

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎src/attribution/onINP.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const onINP = (
239239
};
240240

241241
interactionManager._onBeforeProcessingEntry = groupEntriesByRenderTime;
242-
interactionManager._onAfterProcessingInteraction = saveInteractionTarget;
242+
interactionManager._onAfterProcessingINPCandidate = saveInteractionTarget;
243243

244244
const getIntersectingLoAFs = (
245245
start: DOMHighResTimeStamp,

‎src/lib/InteractionManager.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class InteractionManager {
5858

5959
_onBeforeProcessingEntry?: (entry: PerformanceEventTiming) => void;
6060

61-
_onAfterProcessingInteraction?: (interaction: Interaction) => void;
61+
_onAfterProcessingINPCandidate?: (interaction: Interaction) => void;
6262

6363
_resetInteractions() {
6464
prevInteractionCount = getInteractionCount();
@@ -138,10 +138,9 @@ export class InteractionManager {
138138
this._longestInteractionMap.delete(interaction.id);
139139
}
140140
}
141-
} else {
142-
return;
143-
}
144141

145-
this._onAfterProcessingInteraction?.(interaction!);
142+
// Call any post-processing on the interaction
143+
this._onAfterProcessingINPCandidate?.(interaction);
144+
}
146145
}
147146
}

0 commit comments

Comments
 (0)
Please sign in to comment.