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

State Management is a first-class part of svelte, check out their `Store` implementation.

https://svelte.dev/tutorial/writable-stores

It only took me a few hours to fully appreciate what a tidy solution Svelte's store implementation was.

As far as syncing data from APIs: I am pretty sure that it should be out of scope for _any_ view layer. APIs vary widely, and it wouldn't be appropriate for a view tool (Svelte, React, Vue, etc) to have an opinion. It's really up to the developer, and for the most part (and I may have a controversial opinion here?) should be a pretty simple set of wrappers around `fetch`). Where's Vue or React's API consumption tooling?



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

Search: