EquivalentEventLambda
A Function1 event lambda that is backed by a real EventHandler, so that lambda-shaped event handlers behave exactly like the ones produced by the generated non-lambda on<Event>(c) factory.
The generated *AsLambda factories used to allocate a fresh anonymous Function1 that closed over the owning component/section instance (_ref) and its ComponentContext. That has two problems: the fresh lambda is never structurally equal to the previous render's (breaking equivalence and forcing redundant re-resolves), and — more importantly — a reused lambda would dispatch against the captured, now-stale @Prop/@State/context snapshot.
This wrapper captures nothing render-specific. It holds the EventHandler created by the sibling on<Event>(c) factory and delegates to it for both behaviors:
invoke routes through EventHandler.dispatchEvent, which reads
@Prop/@Statelive from the dispatcher and context that EventHandlersController / TreeState.updateEventDispatchers rebind to the latest committed owner every commit.@Paramvalues come from the handler's ownparams.equals delegates to EventHandler.isEquivalentTo, so two instances compare exactly as the underlying
EventHandlers would (stable id, mode, shared dispatch-info, and@Paramvalues).
The result is that a lambda returned by *AsLambda is equivalence-stable across renders and always dispatches against the current owner — identical to a plain EventHandler.