Live data from Hacker News

Svelte 5 Released

npmjs.com

31–40 of 254 posts

Re: Svelte 5 Released

#31
post #27
post #23

What's the preffered way to make simple SPAs using Svelte now? I'm using this +layout.ts with sveltekit: > export const ssr = false; export const prerender = false; But it feels awkward for real SPAs - internal applications that have no need for server side rendering.

What's the goal of disabling SSR though? I get that hydrations value is mainly in SEO and a tiny improvement in initial draw speed, but why would you want it disabled, specifically? It's pretty much what you already wrote though. https://kit.svelte.dev/docs/single-page-apps

Sometimes you don't want to develop a full-stack application.

Re: Svelte 5 Released

#32
post #27
post #23

What's the preffered way to make simple SPAs using Svelte now? I'm using this +layout.ts with sveltekit: > export const ssr = false; export const prerender = false; But it feels awkward for real SPAs - internal applications that have no need for server side rendering.

What's the goal of disabling SSR though? I get that hydrations value is mainly in SEO and a tiny improvement in initial draw speed, but why would you want it disabled, specifically? It's pretty much what you already wrote though. https://kit.svelte.dev/docs/single-page-apps

The most obvious reason for me would be running something other than Node on the backend, i.e. only using Svelte for the frontend.

Re: Svelte 5 Released

#33
This really made my day. I decided to convert a pretty large project over to v5 a couple of months ago because the new APIs were so much nicer. I rolled the dice a bit because I wasn't sure if I was going to hit weird edge cases, but everything went smoothly. Congrats to the Svelte team and major kudos for coming up with runes!

Re: Svelte 5 Released

#34
Do they still operate with very little backwards compatibility policy? They killed the sapper project and replaced it with sveltekit. Is sveltekit still alive?

Re: Svelte 5 Released

#35
post #27

Earlier quoted context omitted.

What's the goal of disabling SSR though? I get that hydrations value is mainly in SEO and a tiny improvement in initial draw speed, but why would you want it disabled, specifically? It's pretty much what you already wrote though. https://kit.svelte.dev/docs/single-page-apps

Sometimes you don't want to develop a full-stack application.

Ah, if that's the goal then you should be fine with the static adapter instead. Is linked in the previous link - and here

You'll only need the fallback page and can omit the +layout prerender configuration. It's documented on that page

https://kit.svelte.dev/docs/adapter-static

Re: Svelte 5 Released

#36

I love Svelte and use it for all my personal projects and all company projects (except strictly static sites are still built with just 11ty but I hate it and want to move off it). But I'm going to wait a bit on v5 for the company, scanning all the issue headlines, it looks like there are a still a lot of unresolved edge cases: https://github.com/sveltejs/svelte/issues As for my latest personal project, upgrading righ…

offtop, but could you share a bit on why you hate 11ty? I was considering it for a static site.

Re: Svelte 5 Released

#37
post #34

Do they still operate with very little backwards compatibility policy? They killed the sapper project and replaced it with sveltekit. Is sveltekit still alive?

They still support svelte 4 syntax and announced today as well a new migrate CLI to help moving from svelte 4 to svelte 5.

CLI tool: https://github.com/sveltejs/cli

Edit: added the link to the CLI tool

Re: Svelte 5 Released

#38

I love Svelte and use it for all my personal projects and all company projects (except strictly static sites are still built with just 11ty but I hate it and want to move off it). But I'm going to wait a bit on v5 for the company, scanning all the issue headlines, it looks like there are a still a lot of unresolved edge cases: https://github.com/sveltejs/svelte/issues As for my latest personal project, upgrading righ…

Definitely try Astro for static sites, I'm loving it!

Do you think Astro would be good for a site with tons of data (graphs, tables etc)? Can it be used with db, user logins?

Re: Svelte 5 Released

#39
post #6

I learned Svelte 3 over a year ago and I found it very pleasant. Unlike React, Svelte is an integrated framework, no "pick your router" nonsense, I don't want to be picking a router. I like the direction Svelte going in, the old syntax was ok but not great. I wonder how this new Svelte compares with some of the other new kids on the block like solid.js and alpine.js.

nit: >React, Svelte is an integrated framework You're talking about Svelte Kit . Svelte does not have a router.

Good point.

Re: Svelte 5 Released

#40
I can wholeheartedly recommend Svelte. As someone who can only do vanilla HTML/CSS/JS, it lets me build projects quickly and efficiently without having to learn something complex like React. Case in point this silly side project made in Svelte over a weekend: https://meoweler.com
Post reply on HN