statefulModifier

fun <P : Any> statefulModifier(type: ProjectionType, decode: (ProjectionValue) -> P, prepare: (P, RemotePreparationContext) -> Unit = { _, _ -> }, phase: RemotePreparationPhase = RemotePreparationPhase.References, create: (P, RemoteModifierContext) -> Modifier)(source)

Registers a modifier that shares prepared client state with components or other modifiers. Preparation runs only after the entire incoming tree has passed decoding and outside declaration evaluation.