pixelmund / svemix

The Full-Stack addition to SvelteKit. Write your server code inside svelte files, handle sessions, forms and SEO easily.
https://svemix.com
MIT License
337 stars 16 forks source link

Document Limitations of Svemix #29

Closed Acmion closed 2 years ago

Acmion commented 2 years ago

Svemix is a great plugin, but it does have it's limitations. These limitations should be documented.

Some important limitations:

  1. The loader responses are JSON serialized, which causes overhead.
  2. The populated objects (e.g. export var book: Book) are not really of the specified type, but rather just JS data objects. This means that one can not call type functions, for example, book.getYearsSincePublication().
  3. An extra request is made to the server.
pixelmund commented 2 years ago

Closed by #31