Batching

State updates are collected and batched into one update on the next tick.