adding organization feature.

This commit is contained in:
killian-larcher
2024-12-12 13:31:11 +01:00
parent 5bd24574c3
commit afb936bc5b
29 changed files with 363 additions and 93 deletions
@@ -0,0 +1,16 @@
"use client"
import {useEffect, useState} from "react"
const HydrationZustand = ({children}) => {
const [isHydrated, setIsHydrated] = useState(false)
// Wait till Next.js rehydration completes
useEffect(() => {
setIsHydrated(true)
}, [])
return <>{isHydrated ? <div>{children}</div> : null}</>
}
export default HydrationZustand