StoreOptions
type StoreOptions = { applyEffects: boolean; jurisdiction: Jurisdiction; onApply: (state) => void; storage: StorageOptions;};Defined in: store.ts:33
Type declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
applyEffects? | boolean | When true, side-effects like script rewriting fire on state changes. Defaults to true. | store.ts:37 |
jurisdiction | Jurisdiction | Active jurisdiction. Required — pass config.jurisdiction after resolving ‘auto’. | store.ts:41 |
onApply? | (state) => void | Custom side-effect handler. Receives (state, resolved) whenever decisions change. | store.ts:39 |
storage? | StorageOptions | Storage options forwarded to the cookie reader/writer. | store.ts:35 |