Advertisement · 728 × 90

Posts by Matt DeKok

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.

5 months ago 1 0 0 0

Looks like form remote functions

5 months ago 1 0 0 0
Post image

Rich is cooking. #svelte

5 months ago 10 0 1 0
Post image

#MTG I almost spit out my drink

6 months ago 0 0 0 0

Why zod over StandardSchema?

6 months ago 1 0 1 0

Who is Mark? Does Matt have a brother?

6 months ago 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
6 months ago 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.

6 months ago 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...

6 months ago 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...

6 months ago 1 0 1 0
Advertisement

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.

6 months ago 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.

6 months ago 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"
}
},

6 months ago 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."

6 months ago 0 0 0 0
Post image

I think the start time is off by an hour

6 months ago 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!

7 months ago 91 21 5 2

Not quite working with remote functions yet?

6 months ago 0 0 1 0

Love Teval! My favorite.

7 months ago 0 0 0 0
Post image Post image
8 months ago 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

8 months ago 5 0 2 0
Advertisement

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!

8 months ago 2 0 0 0

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

8 months ago 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?

8 months ago 1 0 0 0

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

...Damn!

8 months ago 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.

8 months ago 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
8 months ago 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

8 months ago 220 30 19 12

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

8 months ago 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

9 months ago 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.

9 months ago 1 0 0 0
Advertisement