These posts are aggregated from Svelte GitHub Repository.
Import snippet from external file
Snippets (Svelte 5 feature) are powerful and could be better, if we could put them in an external file to be reusable.
**Example:**
> `my-app.snippet.svelte` or `my-app.svelt
Svelte 5: `Cannot reassign or bind to each block argument in runes mode.` What should I use instead?
Describe the bug
In Svelte 4 app I was using:
```svelte
{each players || [] as player, i}
{/each}
```
Now with Svelte 5 i
Svelte 5: Hydration fails when SvelteKit app is run as a dependency
Describe the bug
I have a SvelteKit application with Svelte 5, which runs as an npm dependency. The project runs fine on its own:
https://stackblitz.com/~/github.com/sam
This `dispatch()` is completely ignored. Why?
I created a REPL for an issue with Svelte dispatch not being called:
Steps to reproduce
1. Open [the REPL](https://stackblitz.com/edit/sveltejs-kit-template-default-dhuwj
Updating state in a promise is not working?
```
// store.svelte.ts
import { UniversalDirectory } from './filesystem.svelte';
let localDirectory: FileSystemDirectoryHandle = $state();
let directory: UniversalDirectory =
[Svelte 5] Why isn't `value` assigned and cleared here?
I'm trying Svelte 5 for the first time today.
[This is a reproduction of this issue](https://svelte-5-preview.vercel.app/H4sIAAAAAAAACp1U72-bMBD9V25W1ZiJknyaJhoS7adWaWunNdqXMU0
Non-blocking state update
Hi, there! I was wondering if Svelte has a way to update state in a non-blocking fashion.
Here's artifically slow tabs example. https://svelte.dev/repl/565c333f0ab141c1a97e96f855d
How to export `class` using svelte 5 props()?
Hi i used to implement this pattern in svelte 4
```svelte
```
Is this pattern doable in
Can you recommend a good select / autocomplete / typeahead component Svelte 5 ready?
Can you recommend a good select / autocomplete / typeahead component Svelte 5 ready?