Module

x/jotai/src/vanilla/utils.ts>createJSONStorage

👻 Primitive and flexible state management for React
Latest
function createJSONStorage
import { createJSONStorage } from "https://dotland.deno.dev/x/jotai@v2.10.2/src/vanilla/utils.ts";

Returns

SyncStorage<Value>

Parameters

getStringStorage: () => AsyncStringStorage
optional
options: JsonStorageOptions

Returns

AsyncStorage<Value>

Parameters

getStringStorage: () => SyncStringStorage
optional
options: JsonStorageOptions

Returns

SyncStorage<Value>