Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh_store/mod.ts>Store#set

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

Method to mutate the internal state. If a value is directly provided, assign the internal state to that value. A function can also be provided to access a dereferenced copy of the previous state.

Parameters

options: T | ((prevState: T) => T)

A value, or function to access the previous state.