{"version":3,"sources":["../../src/batchedUpdates/index.ts"],"names":["beforeBatchCallbacksPush","scheduleBatch"],"mappings":";;;;;AAGA,IAAM,cAAA,GAAiB,CAAC,QAAyB,KAAA;AAC/C,EAAAA,0CAAA,CAAyB,QAAQ,CAAA;AAEjC,EAAcC,+BAAA,EAAA;AAChB,CAAA;AAEA,IAAO,sBAAQ,GAAA","file":"chunk-SHATXG4U.cjs","sourcesContent":["import { beforeBatchCallbacksPush, scheduleBatch } from '../utils/batching';\n\n/** Batches updates from external state changes to synchronize them with the library’s state updates. */\nconst batchedUpdates = (callback: () => void) => {\n  beforeBatchCallbacksPush(callback);\n\n  scheduleBatch();\n};\n\nexport default batchedUpdates;\n"]}