Server: Phase 2 (REVIEW not respected yet)
This commit is contained in:
1 parent
5d16ded553
commit
142b47674d
4271 files changed
+1203269
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
let _tanstack_store = require("@tanstack/store");
|
||||
let react = require("react");
|
||||
|
||||
//#region src/useCreateAtom.ts
|
||||
function useCreateAtom(valueOrFn, options) {
|
||||
const [atom] = (0, react.useState)(() => {
|
||||
if (typeof valueOrFn === "function") return (0, _tanstack_store.createAtom)(valueOrFn, options);
|
||||
return (0, _tanstack_store.createAtom)(valueOrFn, options);
|
||||
});
|
||||
return atom;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
exports.useCreateAtom = useCreateAtom;
|
||||
//# sourceMappingURL=useCreateAtom.cjs.map
|
||||
Reference in new issue
Block a user