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
+20
@@ -0,0 +1,20 @@
|
||||
let _tanstack_router_core = require("@tanstack/router-core");
|
||||
let _tanstack_router_core_isServer = require("@tanstack/router-core/isServer");
|
||||
let _tanstack_react_store = require("@tanstack/react-store");
|
||||
//#region src/routerStores.ts
|
||||
var getStoreFactory = (opts) => {
|
||||
if (_tanstack_router_core_isServer.isServer ?? opts.isServer) return {
|
||||
createMutableStore: _tanstack_router_core.createNonReactiveMutableStore,
|
||||
createReadonlyStore: _tanstack_router_core.createNonReactiveReadonlyStore,
|
||||
batch: (fn) => fn()
|
||||
};
|
||||
return {
|
||||
createMutableStore: _tanstack_react_store.createAtom,
|
||||
createReadonlyStore: _tanstack_react_store.createAtom,
|
||||
batch: _tanstack_react_store.batch
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
exports.getStoreFactory = getStoreFactory;
|
||||
|
||||
//# sourceMappingURL=routerStores.cjs.map
|
||||
Reference in new issue
Block a user