|
|
|
|
|
by com2kid
1054 days ago
|
|
The way they show off observables here is solves a lot of problems, but despite offering up Svelte as an example of observables, it doesn't seem to aim to solve the problem that Svelte stores do. What I really want is a trivial way to say "fire this callback whenever this variable changes." Mobx actually enables this w/o too much work, and Svelte stores are a really nice syntaxical wrapper around the concept. Heck just give me what C# had back in 2002 and I'd be happy. |
|
Ouch, welcome to callback hell :(
Futures would be slightly better. The least painful approach to things like that. to my mind, is an explicit event loop, and posting events on a change.