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
Aaron Bohy
parent
e0c0306acd
commit
7513b1e507
@@ -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