pub type InputHandlerFn = dyn Fn(InputHandlerInput<'_>) + Send + Sync;
Expand description
A InputHandlerFn
is a function that handles state changes for a component.
The rule of execution order is:
- Children’s input handlers are executed earlier than parent’s.
- Newer components’ input handlers are executed earlier than older ones.
Acutally, rule 2 includes rule 1, because a newer component is always a child of an older component :)