Matt DeKok
banner
dekok.dev
Matt DeKok
@dekok.dev
Full Stack Developer. Anime/Manga, D&D, MtG EDH/Commander, and @svelte.dev enthusiast.
Looks like form remote functions
November 1, 2025 at 4:14 AM
Why zod over StandardSchema?
October 8, 2025 at 11:34 AM
Who is Mark? Does Matt have a brother?
September 24, 2025 at 12:28 PM
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.
September 21, 2025 at 8:00 PM
Then the `run` and `runSafe` functions are used in remote functions and load functions.

github.com/sillvva/ddal...

github.com/sillvva/ddal...
September 21, 2025 at 7:55 PM
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...
September 21, 2025 at 7:53 PM
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.
September 21, 2025 at 7:53 PM
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.
September 21, 2025 at 7:53 PM
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"
}
},
sveltejs/eslint-plugin-svelte
ESLint plugin for Svelte using AST. Contribute to sveltejs/eslint-plugin-svelte development by creating an account on GitHub.
github.com
September 21, 2025 at 6:34 PM
I think the start time is off by an hour
September 19, 2025 at 3:26 PM
Not quite working with remote functions yet?
September 18, 2025 at 12:48 AM
Love Teval! My favorite.
September 4, 2025 at 4:00 AM
August 4, 2025 at 3:47 PM
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!
August 3, 2025 at 3:03 AM
I think the ultimate troll move would be that they make it mostly identical but add Indestructible
August 2, 2025 at 6:27 PM
The Exodia of MTG?
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
media.tenor.com
August 1, 2025 at 3:47 PM
... 2 mana rocks that come into play untapped and with upside

...Damn!
August 1, 2025 at 3:46 PM
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.
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...
github.com
August 1, 2025 at 2:30 PM