mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 22:54:29 +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:
11
components/jotai-providers.tsx
Normal file
11
components/jotai-providers.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
'use client'
|
||||
|
||||
import { Provider } from 'jotai'
|
||||
|
||||
export const JotaiProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
return (
|
||||
<Provider>
|
||||
{children}
|
||||
</Provider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user