3 ms·
> To me it is obvious hooks won't use other hooks because that could lead to an infinite loop in a hurry Yet in Javascript: test = { set a(x) { this.b = x },
by patates 2y ago
> To me it is obvious hooks won't use other hooks because that could lead to an infinite loop in a hurry
Yet in Javascript:
test = { set a(x) { this.b = x }, get a() { return 2 }, set b(x) { this.c = 10 }}
Object { a: Getter & Setter, b: Setter }
test.a = 10
10
test
Object { a: Getter & Setter, b: Setter, c: 10 }
and yes it's possible to make infinite loops.