@tanstack/query-core
Version:
The framework agnostic core that powers TanStack Query
23 lines • 540 B
JavaScript
// src/environmentManager.ts
import { isServer } from "./utils.js";
var environmentManager = /* @__PURE__ */ (() => {
let isServerFn = () => isServer;
return {
/**
* Returns whether the current runtime should be treated as a server environment.
*/
isServer() {
return isServerFn();
},
/**
* Overrides the server check globally.
*/
setIsServer(isServerValue) {
isServerFn = isServerValue;
}
};
})();
export {
environmentManager
};
//# sourceMappingURL=environmentManager.js.map