mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user