effect

fun <T> effect(effect: StateEffect<T>)

Add a state effect.