1
0
Fork 0
freesewing/sites/shared/hooks/use-id.mjs

8 lines
239 B
JavaScript
Raw Normal View History

2023-10-22 09:22:23 +02:00
// __SDEFILE__ - This file is a dependency for the stand-alone environment
import { useAtom } from 'jotai'
import { atomWithHash } from 'jotai-location'
const idAtom = atomWithHash('id', null)
export const useId = () => useAtom(idAtom)