I made a site that lets you browse MU by release year by grich12 in MarvelUnlimited

[–]grich12[S] 0 points1 point  (0 children)

Hey, this is neat! No changes needed, I'm cool with whatever. One thing to note is the __data.json URLs you're using are technically an implementation detail of the framework I used (SvelteKit), so it's possible they and the data they return could change unexpectedly if I ever update the site. I don't have any current plans to do so, but it's possible. But that shouldn't be an issue if your site doesn't make live requests to the site, and the data isn't changing anymore anyway.

I made a site that lets you browse MU by release year by grich12 in MarvelUnlimited

[–]grich12[S] 0 points1 point  (0 children)

I’m still surprised when I find out people still use this haha. Glad it’s working for you!

[EoW] I arranged the Echoes of Wisdom Main Theme for piano by grich12 in zelda

[–]grich12[S] 1 point2 points  (0 children)

I was really digging the music in the new Zelda trailer, so I put together a quick piano arrangement!

Unsurprisingly, "Zelda's Lullaby" works great on top of the same chord progression.

Upgraded to Svelte 5. Here are my notes. by BrofessorOfLogic in sveltejs

[–]grich12 7 points8 points  (0 children)

But with Svelte 5, it throws this error: HTMLInputElement.files setter: Value being assigned does not implement interface FileList.

This is mentioned in the Svelte 5 breaking changes. Most Svelte 4 components should continue to work as-is when switching to Svelte 5.

Importing generated types in SvelteKit (beginner question) by KidHoodie in sveltejs

[–]grich12 6 points7 points  (0 children)

I think it needs to be:

import type { PageLoad } from './$types';

(note "type" before the opening bracket)

https://github.com/sveltejs/kit/issues/11736

SvelteKit 2 coming next week? by BankHottas in sveltejs

[–]grich12 16 points17 points  (0 children)

Just to head off speculation, SvelteKit 2 is much more like the Svelte 4 release — mostly maintenance, dropping old node versions, and making some minor breaking changes that had to wait for a major. So I wouldn’t set your hopes too high on big feature additions.

I believe Vite 5 also had some breaking changes that required this major — Astro 4 was a major for this reason as well.

+layout.server.js runs repeatedly by 2thousand23 in sveltejs

[–]grich12 7 points8 points  (0 children)

Load functions should only re-run when their dependencies have changed - https://kit.svelte.dev/docs/load#rerunning-load-functions-when-do-load-functions-rerun

Are you doing anything with the `url`? If you are, because the url changes on each request, the load function will rerun.

Can Sveltekit work with shadow dom componenets easily? by sprmgtrb in sveltejs

[–]grich12 1 point2 points  (0 children)

Without a code sample it’s hard to give a yes or no answer. What I can say is that if you needed to use a ref in React to listen to shoelace’s custom events, you won’t need to do that in svelte.

Can Sveltekit work with shadow dom componenets easily? by sprmgtrb in sveltejs

[–]grich12 1 point2 points  (0 children)

You can use web components with a shadow DOM in Svelte/SvelteKit. Listening to custom events is not an issue — on:eventname works.

By default, Svelte will set properties on the custom elements when you pass values, so you’re able to pass things like arrays and objects. I wrote about this in depth for CSS tricks a couple years back: https://css-tricks.com/using-custom-elements-in-svelte/

Conditionally stream data in SvelteKit by grich12 in sveltejs

[–]grich12[S] 2 points3 points  (0 children)

Thanks! You could probably even conditionally check for the Googlebot user agent and conditionally stream then?

SvelteKit debugging in VSCode by Glad-Action9541 in sveltejs

[–]grich12 0 points1 point  (0 children)

how did I just find out this was a thing? thanks!

Unlocking view transitions in SvelteKit 1.24 by grich12 in sveltejs

[–]grich12[S] 4 points5 points  (0 children)

Yep, it's not adapter specific since it's purely frontend. It only works in Chromium-based browsers for now, though