Matt DeKok's Avatar

Matt DeKok

@dekok.dev

Full Stack Developer. Anime/Manga, D&D, MtG EDH/Commander, and @svelte.dev enthusiast.

179
Followers
601
Following
278
Posts
31.08.2023
Joined
Posts Following

Latest posts by Matt DeKok @dekok.dev

Preview
feat: remote form factory by sillvva · Pull Request #14815 · sveltejs/kit fixes #14802 fixes #14787 According to the docs, the result is supposed to be ... ephemeral — it will vanish if you resubmit, navigate away, or reload the page. But that is not currently the case...

Pretty much done with development and testing on this update to Sveltekit remote forms.

Passing the ball to @dummdidumm.bsky.social to decide whether this is the right approach, or if he wants to go with his alternate approach of decoupling the client-side goodies.

10.11.2025 17:05 👍 1 🔁 0 💬 0 📌 0

Looks like form remote functions

01.11.2025 04:14 👍 1 🔁 0 💬 0 📌 0
Post image

Rich is cooking. #svelte

26.10.2025 00:15 👍 10 🔁 0 💬 1 📌 0
Post image

#MTG I almost spit out my drink

12.10.2025 14:18 👍 0 🔁 0 💬 0 📌 0

Why zod over StandardSchema?

08.10.2025 11:34 👍 1 🔁 0 💬 1 📌 0

Who is Mark? Does Matt have a brother?

24.09.2025 12:11 👍 0 🔁 0 💬 0 📌 0
Preview
a man is walking through a grassy field with the words i 'm going on an adventure ALT: a man is walking through a grassy field with the words i 'm going on an adventure
22.09.2025 20:22 👍 2 🔁 0 💬 0 📌 0

I'd say the main benefits for me are:
- Distinct code requirements/dependencies
- Clearly defined expected errors
- Logging

I don't really use the Effect schema, because Valibot is my preferred validator.

21.09.2025 20:00 👍 1 🔁 0 💬 0 📌 0

Then the `run` and `runSafe` functions are used in remote functions and load functions.

github.com/sillvva/ddal...

github.com/sillvva/ddal...

21.09.2025 19:55 👍 1 🔁 0 💬 1 📌 0

Here are the main places where I've setup my SvelteKit integration:

I setup most of the Effect code in `$lib/server/effect`
github.com/sillvva/ddal...

And added the managed runtime to `locals` so that it can be accessed by my custom `run` functions in `runtime.ts`
github.com/sillvva/ddal...

21.09.2025 19:53 👍 1 🔁 0 💬 1 📌 0

For the docs, check out "Why Effect?", "The Effect Type", "Expected Errors", and "Managing Services" as a starting point to understanding the Effect flow.

I might also make a blog post about how I integrated it with SvelteKit.

21.09.2025 19:53 👍 1 🔁 0 💬 1 📌 0

I didn't really use any resources other than the docs. One of the nice parts about Effect is that even though it can be the whole solution much of the time, you can also incrementally adopt it, which is what I did in my project until it eventually took over the entire back end.

21.09.2025 19:53 👍 1 🔁 0 💬 1 📌 0
Preview
sveltejs/eslint-plugin-svelte ESLint plugin for Svelte using AST. Contribute to sveltejs/eslint-plugin-svelte development by creating an account on GitHub.

Just disable that rule in your eslint.config.js. It has a lot of issues:
github.com/sveltejs/esl...

{
rules: {
"svelte/no-navigation-without-resolve": "off"
}
},

21.09.2025 18:34 👍 3 🔁 0 💬 1 📌 0

I rebuilt my hobby web app 3.5 times with Nuxt, Next.js, Sveltekit. I got part way in with Solid Start before I gave up like "Nah, I'll stick with Sveltekit."

21.09.2025 13:44 👍 0 🔁 0 💬 0 📌 0
Post image

I think the start time is off by an hour

19.09.2025 15:26 👍 0 🔁 0 💬 0 📌 0
Preview
Async SSR · sveltejs svelte · Discussion #16784 The Svelte team has been hard at work on asynchronous rendering, with client-side support and remote functions as our first two efforts. It’s time for the third: SSR. Background There are three cor...

Super excited to announce the experimental release of asynchronous SSR in Svelte! github.com/sveltejs/sve...

`await` expressions in your Svelte components can now be rendered on the server, meaning you don't need to render them inside boundaries with a `pending` snippet. Next up, streaming SSR!

17.09.2025 23:22 👍 91 🔁 21 💬 5 📌 2

Not quite working with remote functions yet?

18.09.2025 00:48 👍 0 🔁 0 💬 1 📌 0

Love Teval! My favorite.

04.09.2025 04:00 👍 0 🔁 0 💬 0 📌 0
Post image Post image
04.08.2025 15:47 👍 0 🔁 0 💬 0 📌 0
Preview
Effect + Sveltekit Effect + Sveltekit. GitHub Gist: instantly share code, notes, and snippets.

I created a run method to integrate Effect + SvelteKit
a) takes an effect, effect fn, or a generator fn
b) handles tagged errors, defects, and SvelteKit's `error` and `redirect`
c) uses a custom logger to post logs to the console and the db
d) returns directly to a loader, action, or remote function

04.08.2025 15:43 👍 5 🔁 0 💬 2 📌 0

Thanks for looking into it!

Testing some more, I seem to be able to enable remote functions so long as I don't enable async, so the issue is only there.

Remote functions are awesome!

03.08.2025 03:03 👍 2 🔁 0 💬 0 📌 0

I think the ultimate troll move would be that they make it mostly identical but add Indestructible

02.08.2025 18:27 👍 3 🔁 0 💬 0 📌 0
Preview
a cartoon drawing of a triangle and a circle in the middle ALT: a cartoon drawing of a triangle and a circle in the middle

The Exodia of MTG?

01.08.2025 15:47 👍 1 🔁 0 💬 0 📌 0

... 2 mana rocks that come into play untapped and with upside

...Damn!

01.08.2025 15:46 👍 1 🔁 0 💬 0 📌 0
Preview
Async Svelte breaking block effects in template (in SvelteKit?) · Issue #16387 · sveltejs/svelte Edit: I have some further findings in a comment below, please see them for a better picture of the issue Describe the bug Hi, I'm not sure sure if this is a Svelte or SvelteKit issue because I'm no...

Known issue, which I found after: github.com/sveltejs/sve...

Basically properties of `data` become undefined before navigating away from a page, and the effects try to rerun before that happens so it causes a "reading property of undefined error" on the previous page.

There's a repro in the issue.

01.08.2025 14:30 👍 1 🔁 0 💬 1 📌 0
Preview
a cartoon of homer holding a pig with the words spiderpig spiderpig ALT: a cartoon of homer holding a pig with the words spiderpig spiderpig
01.08.2025 05:07 👍 1 🔁 0 💬 0 📌 0
screenshot of the release PR for SvelteKit remote functions

screenshot of the release PR for SvelteKit remote functions

we just released SvelteKit remote functions. feel like 'minor change' undersells it a little tbh

✅ await in components svelte.dev/docs/svelte/...
✅ remote functions svelte.dev/docs/kit/rem...
🔜 async SSR

truly can't wait to ship the rest of this stuff

31.07.2025 21:12 👍 220 🔁 30 💬 19 📌 12

One caveat, which I raised in Discord, is that loaders break when either experimental flag is enabled.

01.08.2025 04:28 👍 0 🔁 0 💬 1 📌 0

I think I might have just had the best idea for a crossover ever. Whose Line is it Anyway featuring Guardians of the Galaxy

15.07.2025 08:46 👍 0 🔁 0 💬 0 📌 0

It doesn't help. Nixpacks only cares about the major version and will still use 22.11.0 on Coolify unless you use an updated nixpkgs archive.

15.07.2025 00:36 👍 1 🔁 0 💬 0 📌 0