Skip to content

Commit 8118551

Browse files
Merge branch 'main' into state-based-tf
2 parents ca68af0 + 903fcbc commit 8118551

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter/RecomposeHighlighter.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ private class RecomposeHighlighterModifier : Modifier.Node(), DrawModifierNode {
8989

9090
override val shouldAutoInvalidate: Boolean = false
9191

92+
override fun onReset() {
93+
totalCompositions = 0
94+
timerJob?.cancel()
95+
}
96+
9297
override fun onDetach() {
9398
timerJob?.cancel()
9499
}

0 commit comments

Comments
 (0)