mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-20 22:24:28 +01:00
Added jotai (#14)
* Added jotai * cache settings by using jotai state * use hydrateAtom with SSR * remove useSettings * fix test
This commit is contained in:
4
lib/atoms.ts
Normal file
4
lib/atoms.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { atom } from "jotai";
|
||||
import { getDefaultSettings } from "./types";
|
||||
|
||||
export const settingsAtom = atom(getDefaultSettings())
|
||||
Reference in New Issue
Block a user