Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ isServerFn
Function
isServerFn
packages/query-core/src/environmentManager.ts:8–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
export
type
IsServerValue = () => boolean
7
8
let
isServerFn: IsServerValue = () => defaultIsServer
9
10
/**
11
* Returns whether the current runtime should be treated as a server environment.
Callers
1
isServer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected