invalidate cached path when changing currentTarget of event

fixes #544
This commit is contained in:
Noel Levy
2023-06-19 11:31:45 -07:00
parent c398448152
commit 5d862477cd
2 changed files with 29 additions and 0 deletions

View File

@@ -287,6 +287,7 @@ const cleanupTransactions = (transactionCleanups, i) => {
events
.forEach(event => {
event.currentTarget = type
event._path = null
})
// sort events by path length so that top-level events are fired first.
events