Skip to content

Commit

Permalink
Always unmount all when on reset
Browse files Browse the repository at this point in the history
Summary: Always unmount all when on reset

Differential Revision: D55653566

fbshipit-source-id: b7a29bff60c0f6e1d4637e7daa7d54c4c44ff497
  • Loading branch information
adityasharat authored and facebook-github-bot committed Apr 2, 2024
1 parent 096c868 commit fba551b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ class LithoRenderTreeView @JvmOverloads constructor(context: Context, attrs: Att
}

fun resetLayoutState() {
if (this.layoutState != null) {
hasNewTree = true
unmountAllItems()
}
this.layoutState = null
this.treeState = null
unmountAllItems()
layoutState = null
treeState = null
hasNewTree = true
requestLayout()
}
}

0 comments on commit fba551b

Please sign in to comment.