@dummdidumm.bsky.social - can I call multiple remote functions on different parts on the page? Like in +layout.svelte and then in some nested components again? I'm facing a but where I call myFn.refresh() in a component and it doesn't refresh. It does, if I remove it from the +layout.svelte
Arne Wiese
@wiesson.bsky.social
Freelance Software Engineer I like working with Sveltekit, Supabase, Astro, Payload CMS, Nextjs, Vercel, (...) arnewiese.de
lil' treat for all you weekend builders: Svelte now has an official MCP server, courtesy of resident bot wranglers @paolo.ricciuti.me and @khromov.se 🤖 it gives your LLM access to docs and compiler-driven diagnostics — give it a spin and let us know how you get on! svelte.dev/docs/mcp/ove...
Overview • Docs • Svelte
Overview • Svelte documentation
svelte.dev
@dummdidumm.bsky.social github.com/wiesson/svel... I made this little page to test some patterns after each svelte/kit release to see if sth is broken or works @sveltesociety.dev @svelte.dev
GitHub - wiesson/svelte-async-remote-fn: Interactive showcase of SvelteKit Remote Functions patterns - query, command, and form patterns with live examples
Interactive showcase of SvelteKit Remote Functions patterns - query, command, and form patterns with live examples - wiesson/svelte-async-remote-fn
github.com
@dummdidumm.bsky.social what's the preferred pattern to load data from a remote function and populate state for formData? let postId = $derived(params.id) let query = $derived(getPost(postId)) let formData = $state({ ... }) $effect(() => { if(query.current) { formData = query.current } }}