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
+16
@@ -0,0 +1,16 @@
|
||||
let _tanstack_store = require("@tanstack/store");
|
||||
let react = require("react");
|
||||
|
||||
//#region src/useCreateStore.ts
|
||||
function useCreateStore(valueOrFn, actions) {
|
||||
const [store] = (0, react.useState)(() => {
|
||||
if (typeof valueOrFn === "function") return (0, _tanstack_store.createStore)(valueOrFn);
|
||||
if (actions) return (0, _tanstack_store.createStore)(valueOrFn, actions);
|
||||
return (0, _tanstack_store.createStore)(valueOrFn);
|
||||
});
|
||||
return store;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
exports.useCreateStore = useCreateStore;
|
||||
//# sourceMappingURL=useCreateStore.cjs.map
|
||||
Reference in new issue
Block a user