pub fn batch<T>(f: impl FnOnce() -> T) -> T
Use Effect::batch instead; this will be removed in a future release