Skip to content

ogygia warning

macro_store_returns_non_store

‹file›:‹line› — this import.meta.og.store factory has a return that is provably not a store (undefined/null/primitive). Where that branch runs, the product crosses as plain data, unbranded. If it is an environment guard, return a store there too (e.g. writable(seed)) and guard the side effects inside the factory instead.

A store factory marked with import.meta.og.store returns something that is not a store on one branch (undefined, null, a number). Where that branch runs, the value reaches islands as plain data, not as the store.

If the branch guards an environment (the server), return a store there too, such as writable(seed), and guard the side effects inside the factory.

Every error and warning