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

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

👻 Primitive and flexible state management for React
Go to Latest
function createJSONStorage
import { createJSONStorage } from "https://deno.land/x/jotai@v2.7.0/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>