Skip to content

ogygia warning

island_context_unprovided

island code ‹file› reads getContext(‹key›), but this app registers no ogygia context provider and no island code sets ‹key›. On a csr=false page a value set with Svelte's setContext in a page/layout does NOT cross the island boundary — the island reads undefined on the client, re-renders a different tree, and Svelte discards its server-rendered DOM on hydration (a silent full re-render). Fix: provide ‹key› with setContext / <Provide> / createContext imported from 'ogygia' (in a csr=false layout); the read stays getContext(‹key›).

An island reads a context nothing in the browser provides. On a csr=false page a layout or page runs only on the server, so a value it sets with Svelte's setContext never reaches the island there. The island renders a different tree and Svelte throws its server HTML away.

Provide the value with setContext, <Provide> or createContext imported from ogygia. The island keeps reading it with getContext. The key is a string or a Symbol.for('name'): both cross.

Every error and warning