mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] reactivity: slightly improve code and typing
This commit is contained in:
committed by
Samuel Degueldre
parent
ad4673cb36
commit
4efe1ae166
@@ -871,7 +871,7 @@ describe("Reactivity: atom", () => {
|
||||
let n = 0;
|
||||
const observer = () => n++;
|
||||
const unregisterObserver = registerObserver(observer);
|
||||
const state = atom({ a: 1 }, observer);
|
||||
const state = atom({ a: 1 } as any, observer);
|
||||
|
||||
state.a = state.a;
|
||||
await nextMicroTick();
|
||||
|
||||
Reference in New Issue
Block a user