Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh_store/mod.ts

Simple store for Deno Fresh, to pass state between islands
Latest
import * as freshStore from "https://deno.land/x/fresh_store@v1.0.2/mod.ts";

Classes

Error that is triggered when a duplicated observer is being attached to a store.

Error that is triggered when attempting to insert a store at an address that was already allocated, without explicit override.

Error that is triggered when attempting to access a memory address that is unallocated.

A simple store that follows the Observer pattern.

A multi Store container.

Error that is triggered when a non-existing/non-attached observer is being detached from a store.

Variables

Convenience constant, provide access to the global StoreStack and creates it if it doesn't exist.

Functions

Convenience function to create a store. Multiple options can be provided, see StoreOptions.

Interfaces

The options to create a store.

Defines how useStore should handle errors.

Type Aliases

Convenience type for Store of any type.

Convenience type alias for a pointer.