Download node_modules/@tanstack/react-store/dist/useCreateAtom.d.ts from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useCreateAtom.d.ts
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tanstack/react-store/dist/useCreateAtom.d.ts
-
curl -L -o useCreateAtom.d.ts https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useCreateAtom.d.ts
758 Bytes
| import { Atom, AtomOptions, ReadonlyAtom } from "@tanstack/store"; | |
| //#region src/useCreateAtom.d.ts | |
| /** | |
| * Creates a stable atom instance for the lifetime of the component. | |
| * | |
| * Pass an initial value to create a writable atom, or a getter function to | |
| * create a readonly derived atom. This hook mirrors the overloads from | |
| * {@link createAtom}, but ensures the atom is only created once per mount. | |
| * | |
| * @example | |
| * ```tsx | |
| * const countAtom = useCreateAtom(0) | |
| * ``` | |
| */ | |
| declare function useCreateAtom<T>(getValue: (prev?: NoInfer<T>) => T, options?: AtomOptions<T>): ReadonlyAtom<T>; | |
| declare function useCreateAtom<T>(initialValue: T, options?: AtomOptions<T>): Atom<T>; | |
| //#endregion | |
| export { useCreateAtom }; | |
| //# sourceMappingURL=useCreateAtom.d.ts.map |