File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export const onINP = (
239
239
} ;
240
240
241
241
interactionManager . _onBeforeProcessingEntry = groupEntriesByRenderTime ;
242
- interactionManager . _onAfterProcessingInteraction = saveInteractionTarget ;
242
+ interactionManager . _onAfterProcessingINPCandidate = saveInteractionTarget ;
243
243
244
244
const getIntersectingLoAFs = (
245
245
start : DOMHighResTimeStamp ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class InteractionManager {
58
58
59
59
_onBeforeProcessingEntry ?: ( entry : PerformanceEventTiming ) => void ;
60
60
61
- _onAfterProcessingInteraction ?: ( interaction : Interaction ) => void ;
61
+ _onAfterProcessingINPCandidate ?: ( interaction : Interaction ) => void ;
62
62
63
63
_resetInteractions ( ) {
64
64
prevInteractionCount = getInteractionCount ( ) ;
@@ -138,10 +138,9 @@ export class InteractionManager {
138
138
this . _longestInteractionMap . delete ( interaction . id ) ;
139
139
}
140
140
}
141
- } else {
142
- return ;
143
- }
144
141
145
- this . _onAfterProcessingInteraction ?.( interaction ! ) ;
142
+ // Call any post-processing on the interaction
143
+ this . _onAfterProcessingINPCandidate ?.( interaction ) ;
144
+ }
146
145
}
147
146
}
You can’t perform that action at this time.
0 commit comments