Bonsai_driverSourceval create :
?initial_model_sexp:Core.Sexp.t ->
?optimize:bool ->
clock:Incr.Clock.t ->
'r Bonsai.Computation.t ->
'r tBuilds a new driver for a bonsai component.
The "main loop" of a bonsai handle is 1. flush - dequeue events and process actions 2. result - compute the final value of the computation 3. trigger_lifecycles - run any lifecycle events for this stabilization
Apply all pending actions and stabilize the incremental graph, updating result.
Triggers all lifecycle events that need to be run. Lifecycle events are run in this order: 1. componnet deactivations 2. component activations 3. after display, which includes things like on_change
returns true if the lifecycle collection has anything that it wants to do after the display is processed.