Function consecuit::executor::batch_updates [−][src]
pub fn batch_updates(f: impl FnOnce())
Expand description
Batch the state updates started inside the given closure. READ BEFORE USE
Consecuit batch updates using setTimeout anyway, even if you are not using this.
Using this will avoid the setTimeout.
Updates from inside crate::hooks::use_effect(), consecuit_html’s Callback, and run_later are already batched.