StateObservation
constructor(beforeMutation: () -> Unit, afterMutation: () -> Unit, invalidated: () -> Unit, validateMutation: () -> Unit)(source)
Parameters
beforeMutation
validates the session phase and enters its equality/reentrancy guard; failure must leave that guard unchanged.
validateMutation
checks the current operation phase without entering a mutation guard.
afterMutation
leaves the guard after an accepted mutation attempt and must not throw.
invalidated
marks the screen dirty after an unequal assignment and must not throw or run application code.