diff --git a/epoxy-compose/src/main/java/com/airbnb/epoxy/ComposeInterop.kt b/epoxy-compose/src/main/java/com/airbnb/epoxy/ComposeInterop.kt index 25877fbfc9..7d2fab9df4 100644 --- a/epoxy-compose/src/main/java/com/airbnb/epoxy/ComposeInterop.kt +++ b/epoxy-compose/src/main/java/com/airbnb/epoxy/ComposeInterop.kt @@ -46,6 +46,11 @@ class ComposeEpoxyModel( view.setContent(composeFunction) } + override fun unbind(view: ComposeView) { + super.unbind(view) + view.disposeComposition() + } + override fun equals(other: Any?): Boolean { if (other === this) return true if (other !is ComposeEpoxyModel) return false