Re:Svelte 5: Runes
by vjerancrnjak on Thursday September 21, 2023 @04:30PM
(#37603876)
Cool, did not know that, last time I seriously used MobX was on 2016 primitives. But I see it works similarly to before. All of the accesses will be figured out during the first render.
Observer component is so simple. Just a deferred function invoke. Could have been done with 2016 primitives too.
It's trivial with MobX. The Observer component essentially gives you an "inline" component wherever you need reactivity, without the need to actually componentize.
i.e using a MobX State Tree store: