dispose

open override fun dispose()

Disposes this composition. After disposal, recompose returns null.

Disposal failures reach the caller. A failing disposal callback can leave later content callbacks uncalled. Repeated disposal does not retry them.

The top-level component leaves the composition even when a teardown in the content throws, and that failure then reaches the caller.

Must be called on the Event Dispatch Thread.