onDispose

fun onDispose()

Cleans up any resources held by this object.

Must be called upon leaving the composition (i.e. with a DisposableEffect).