ottomated
ottomated
@pbvahlst I think you want ```js const { data } = $props(); const a = $derived(data.x.filter(...)); const b = $derived(data.y.toSorted()); ```
@Gin-Quin > Which you can do the same way in Svelte 5: Actually, the point is you can't do it the same way. Try it—that code will cause an infinite...
> They were originally designed with deep reactivity and changed back to be explicit because Dominik thought not having a $state anywhere was too magic. Would it be possible and...
> It may be possible, but would break the current logical semantics of how classes work, since when you try doing it with SomeOtherClass, the behavior is basically the opposite....
> Suppose we were to change things so that values _were_ automatically replaced with reactive proxies — what would a good opt-out mechanism look like? `$state.frozen(new Map())` is my intuition,...
> For one thing what is a frozen map? It implies you can't `set` or `delete` etc. Sure, frozen is a bad word for it - could be `$map.shallow`, or...
> Names beginning with `$` are prohibited This makes sense. > The alternative is to make `$map` and `$set` etc actual runes, but that would also be a big mistake....
> It does, just because it's one less moving part if we don't need to run the Svelte compiler on its own source code in order to run tests etc....
Is there anything blocking this at the moment? This would be a huge win for my productivity :)
All of these *must* be controlled by the lobby host and synced across clients. I can't merge this PR until that's implemented.