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

x/fresh_store/mod.ts>Subject

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

Properties

readonly
state: T

Methods

attach(observer: Observer<T>): void
detach(observer: Observer<T>): void
notify(): void
set(options: T): void
set(options: (prevState: T) => T): void