(no title)
almostdigital | 2 years ago
For anything but a demo app with just a couple of routes it's a headache to navigate.
Edit: Another smell of the routing system to me is that you need to resort to complexity like this [1] to have anything but top down inheritance. I love Svelte btw and have used it in many projects.
[1] https://kit.svelte.dev/docs/advanced-routing#advanced-layout...
9dev|2 years ago
almostdigital|2 years ago
kevinak|2 years ago
It might look complicated at first sight, but once you actually use it you really appreciate the way it's structured.
pier25|2 years ago
I've been using Svelte happily for years, but I won't be using SvelteKit. In part because of the routing but also because it doesn't really solve much in the backend.
It's amazing that all the full stack frameworks (Next, Nuxt, SvelteKit, Remix, Astro, etc) are investing so much effort into reinvent the backend and after years they still don't provide even basic backend functionality. For example, out of the box, Fastify gives you validation, sessions, CORS, cache headers, etc. Features that you need in probably all backend projects.
I started this repo to figure out how to integrate Svelte with Fastify using Vite. It has hot reload, partial hydration, etc. It's very quick and dirty code, but it works.
https://github.com/PierBover/fastify-vite-svelte-template
dncornholio|2 years ago
himujjal|2 years ago
Plus I can't use it with Go, PHP, Ruby, Rust etc when it comes to SSR (without running multiple servers and handling deployment nightmares).
Something about this whole Node + SSR Front-end is smelly. (next, nuxt, solidstart) I love Svelte as a framework and a way of writing UI, but SvelteKit. Eh! Not so much.
SvelteKit is too much complexity for no reason. Goes opposite of what Svelte was meant to be: Simple and intuitive.
kevinak|2 years ago
SvelteKit is a JavaScript framework, it makes sense that you can't use it with other languages. You can pair it with a backend of your choice of course, but to get the SSR benefits you do need to work within the framework.
There are other ways of using Svelte with other languages, I would take a look at something like Inertia.js [0].
[0] https://inertiajs.com
KyeRussell|2 years ago