import { Store } from "https://deno.land/x/fresh_store@v1.0.1/mod.ts";
A simple store that follows the Observer pattern.
Properties
readonly
state: TA deep copy of the internal state, to prevent referenced objects to be directly mutated.
Methods
notify(): void
Notifies all the observers of a change. Will trigger automatically when the state is changed through Store.set, but it can be forced by calling this method directly.