DisposableEffectScope


Receiver scope for DisposableEffect that offers the onDispose clause that should be the last statement in any call to DisposableEffect.

Summary

Public constructors

Cmn

Public functions

inline DisposableEffectResult
onDispose(crossinline onDisposeEffect: () -> Unit)

Provide onDisposeEffect to the DisposableEffect to run when it leaves the composition or its key changes.

Cmn

Public constructors

DisposableEffectScope

DisposableEffectScope()

Public functions

onDispose

inline fun onDispose(crossinline onDisposeEffect: () -> Unit): DisposableEffectResult

Provide onDisposeEffect to the DisposableEffect to run when it leaves the composition or its key changes.