Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ isServer
Function
isServer
packages/query-core/src/environmentManager.ts:14–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
* @returns `true`
if
the runtime is treated as a server.
13
*/
14
export
const
isServer = (): boolean => isServerFn()
15
16
/**
17
* Manages how TanStack Query detects whether the current runtime should be treated as
Callers
1
environmentManager.test-d.ts
File · 0.90
Calls
1
isServerFn
Function · 0.85
Tested by
no test coverage detected