Skip to content

ogygia warning

snippet_captures_store

‹host›: {#snippet ‹snippet›} crosses an island boundary and captures the store `‹store›` as an OBJECT — a host-declared store cannot cross (its functions don't serialize). Use its value (`$‹store›`) inside the snippet, or share live state with a wired class instead.

A snippet passed into an island uses a store declared in the host as an object. The snippet's captures are serialized, and a store's functions cannot be. Read its value with $ inside the snippet, or share live state with a wired class.

Every error and warning