[IMP] reactivity: new primitives for reactivity

fine grained reactivity:

existing key in source changes --> only observer having read the key are notified

add/delete key in source changes --> all source observers are notified

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Géry Debongnie <ged@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2021-10-26 14:51:57 +02:00
committed by Géry Debongnie
parent 6479631983
commit 4e4b85e2a9
6 changed files with 604 additions and 372 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ describe("lifecycle hooks", () => {
let n = 0;
class Test extends Component {
static template = xml`<div/>`;
static template = xml`<div><t t-esc="state.a"/></div>`;
state = useState({ a: 1 });
setup() {