This commit is contained in:
Nicolas Bayet
2025-10-01 13:57:58 +02:00
parent 1ddf2ceff9
commit a309ec498b
+9
View File
@@ -36,3 +36,12 @@ export function pushExecutionContext(context: ExecutionContext) {
export function popExecutionContext() {
executionContexts.pop();
}
export function makeExecutionContext({ update, meta }: { update: () => void; meta?: any }) {
const executionContext: ExecutionContext = {
update,
atoms: new Set(),
meta: meta || {},
};
return executionContext;
}