mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 06:34:30 +01:00
* Added jotai * cache settings by using jotai state * use hydrateAtom with SSR * remove useSettings * fix test
5 lines
132 B
TypeScript
5 lines
132 B
TypeScript
import { atom } from "jotai";
|
|
import { getDefaultSettings } from "./types";
|
|
|
|
export const settingsAtom = atom(getDefaultSettings())
|