Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a Svelte user, and someone who definitely prefers it over the old frameworks, the praise and the criticisms seem accurate:

> In the end I found it was difficult to determine reliably when to reach for the $ label. I'd use it in one scenario and it seemed to work like I expect, then throw it at another scenario and it didn't work like I expect.

Yep. There's a bunch of different syntaxes and I can't find a documentation page that lists all of them. I use it, but I don't have confidence to always know when it's appropriate.

> Rip out {#await ...} and put it in the <script> logic, then use local variables when rendering.

Yep. Handling promises isn't something to be done in the HTML. HTML should deal with values.

I think even given these Svelte is still the obvious choice for new apps. Particularly the cleaner syntax, less code, batteries-included handling of CSS, and stores. But the two points above would be great to improve for future versions.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: