@tanstack/db
Version:
A reactive client store for building super fast apps on sync
19 lines (18 loc) • 607 B
JavaScript
import { getActivePublicationContext, transactionScopedScheduler } from "../../scheduler.js";
import { getActiveTransaction } from "../../transactions.js";
function scheduleQueryGraphRun(jobId, dependencies, run, contextId = getActiveTransaction()?.id ?? getActivePublicationContext()) {
const deps = [...dependencies];
if (contextId !== void 0) {
for (const dep of deps) dep.scheduleGraphRun({ contextId });
}
transactionScopedScheduler.schedule({
contextId,
jobId,
dependencies: deps,
run
});
}
export {
scheduleQueryGraphRun
};
//# sourceMappingURL=graph-scheduler.js.map