UNPKG

@dark-engine/core

Version:

The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)

12 lines (11 loc) 277 B
import { $$scope } from '../scope'; import { scheduler } from '../scheduler'; function batch(callback) { const $scope = $$scope(); $scope.setIsBatch(true); callback(); $scope.setIsBatch(false); scheduler.batch(); } export { batch }; //# sourceMappingURL=batch.js.map