fun addOnStateSetListener(callback: (previousState: S, newState: S) -> Unit): Unit
Add a listener that will be called each time a state is set on this state store via the set function.