Skip to content

ogygia warning

snippet_store_snapshot

‹host›: {#snippet ‹snippet›} crosses an island boundary and reads `‹store›` (at ‹at›) — captured as a FROZEN snapshot of the store's value at render time; later store updates never reach the island. To make the snapshot explicit (and silence this), read it at host scope outside the snippet — e.g. `const store›_value = ‹store›;` — and use that.

A snippet passed into an island reads a store with $. In plain Svelte that value is live. Across an island boundary the snippet is rendered once from the values it captured, so the island keeps the value the store had at render time.

To say so in the code (and silence this), read the value into a host variable outside the snippet and use that. For a value that keeps changing, share a wired class instead.

Every error and warning