3 ms·
This does just seem like a worse version of knockout. In knockout (with typescript annotations), the equivalent would be: let count = Knockout.Observable<
by xnorswap 3y ago
This does just seem like a worse version of knockout.
In knockout (with typescript annotations), the equivalent would be:
let count = Knockout.Observable<number>(0);
And it's then much clearer when you want to access the value of the observable with count() or update it with count(1234) or count(x => x+1 ).
( I may have hallucinated the ability to pass a function to the observable ).
- SebastianKra 3y agoAt least there were observables. Here, you're on your own if there are any external updates (timers, sse, etc...).
- tipiirai 3y agoYes. If there are timers, SSE, or fetch responses you must explicitly call the update() method.