Skip to main content
Module

x/fresh_store/mod.ts>StoreOptionsErrorHandling

Simple store for Deno Fresh, to pass state between islands
Go to Latest
interface StoreOptionsErrorHandling
import { type StoreOptionsErrorHandling } from "https://deno.land/x/fresh_store@v1.0.1/mod.ts";

Defines how useStore should handle errors.

Properties

optional
verbose: boolean

Set to true if error messages should be outputed to the console.

verbose is set to false by default.

optional
stopOnError: boolean

By default useStore will silently ignore errors to allow the program to continue its execution. If stopOnError is set to true, the function will stop if an error is thrown and will rethrow it.