4 ms·
At first, this looked like a bad idea but now can see the value but also see the ugly and less-friendly to newcomers angle. Trouble is, coming from a Vue backg
by contomcon 9y ago
At first, this looked like a bad idea but now can see the value but also see the ugly and less-friendly to newcomers angle.
Trouble is, coming from a Vue background (where computed props do not have to rely on a state item), the pre-requisite in Svelte to do so seemed at first a major PITA (then I saw the light/benefits and was actually easily able to re-work the Vue versions to Svelte).
Unless this is the only place Svelte goes slightly 'off-piste' in terms of JS then personally I'd leave as is, otherwise make the change