Skip to content

Commit

Permalink
Clear triggers on cleanup
Browse files Browse the repository at this point in the history
Summary: Clear triggers on cleanup

Differential Revision: D55653565

fbshipit-source-id: 1fcaefd8cd2ee8f5d0c99666f0c7dbc63a03119e
  • Loading branch information
adityasharat authored and facebook-github-bot committed Apr 2, 2024
1 parent fba551b commit 2b6ca16
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ object NestedLithoTree {

fun LayoutState.cleanup() {
treeState.effectsHandler.onDetached()
treeState.clearUnusedTriggerHandlers()
}

fun TreeState.enqueue(updates: List<PendingStateUpdate>): TreeState {
Expand Down

0 comments on commit 2b6ca16

Please sign in to comment.