Server: Phase 2 (REVIEW not respected yet)

This commit is contained in:
Thomas Karner committed 2026-09-21 11:24:43 +02:00
1 parent 5d16ded553
commit 142b47674d
4271 files changed
+1203269

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { UseSelectorOptions } from "./useSelector.cjs";
import { Atom } from "@tanstack/store";
//#region src/useAtom.d.ts
/**
* Returns the current atom value together with a stable setter.
*
* This is the writable-atom convenience hook for components that need to both
* read and update the same atom.
*
* @example
* ```tsx
* const [count, setCount] = useAtom(countAtom)
* ```
*/
declare function useAtom<TValue>(atom: Atom<TValue>, options?: UseSelectorOptions<TValue>): [TValue, Atom<TValue>['set']];
//#endregion
export { useAtom };
//# sourceMappingURL=useAtom.d.cts.map