ChangeScreenStateEventSchema
Moves the screen this event lives in to another State: Initial (its loading state), Failure (its failure state), or Success with the content to display.
For Success the content comes from State.Success.data when declared, otherwise from the event's incomingData, which must be a ScreenModel — typically the one produced by a preceding GetScreen.
incomingData consumed: used as the screen content when Success declares no data of its own.
Triggers fired:
OnSuccessEventTrigger— when the state was applied. No data is passed downstream.OnFailureEventTrigger— when applying the state throws, including the case ofSuccesswithout declared data and without aScreenModelin incomingData; no data is passed downstream and the error is logged.
Constructors
Properties
This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.
The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.