Added jotai (#14)

* Added jotai

* cache settings by using jotai state

* use hydrateAtom with SSR

* remove useSettings

* fix test
This commit is contained in:
Doh
2025-01-03 20:50:54 -05:00
committed by GitHub
parent e06e6260ef
commit cb02b3831c
22 changed files with 126 additions and 75 deletions

4
lib/atoms.ts Normal file
View File

@@ -0,0 +1,4 @@
import { atom } from "jotai";
import { getDefaultSettings } from "./types";
export const settingsAtom = atom(getDefaultSettings())