ImpressionEffect

fun ImpressionEffect(vararg inputs: Any?, impression: () -> Unit)(source)

A side effect that will run an impression. This impression will run only once until it is forgotten based on the current RetainedStateRegistry or until the inputs change. This is useful for single fire side effects like logging or analytics.

Parameters

inputs

A set of inputs that when changed will cause the impression to be re-run.

impression

The side effect to run.