Download node_modules/@tanstack/react-store/dist/useAtom.cjs.map from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.cjs.map
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tanstack/react-store/dist/useAtom.cjs.map
-
curl -L -o useAtom.cjs.map https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.cjs.map
871 Bytes
| {"version":3,"file":"useAtom.cjs","names":["useSelector"],"sources":["../src/useAtom.ts"],"sourcesContent":["import { useSelector } from './useSelector'\nimport type { Atom } from '@tanstack/store'\nimport type { UseSelectorOptions } from './useSelector'\n\n/**\n * Returns the current atom value together with a stable setter.\n *\n * This is the writable-atom convenience hook for components that need to both\n * read and update the same atom.\n *\n * @example\n * ```tsx\n * const [count, setCount] = useAtom(countAtom)\n * ```\n */\nexport function useAtom<TValue>(\n atom: Atom<TValue>,\n options?: UseSelectorOptions<TValue>,\n): [TValue, Atom<TValue>['set']] {\n const value = useSelector(atom, undefined, options)\n\n return [value, atom.set]\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,QACd,MACA,SAC+B;AAG/B,QAAO,CAFOA,gCAAY,MAAM,QAAW,QAAQ,EAEpC,KAAK,IAAI"} |