MCPcopy Create free account
hub / github.com/TanStack/query / setIsServer

Function setIsServer

packages/query-core/src/environmentManager.ts:39–41  ·  view source on GitHub ↗

* Overrides the server check globally. * @param isServerValue - A function that returns whether the runtime should be treated as a * server.

(isServerValue: IsServerValue)

Source from the content-addressed store, hash-verified

37 * server.
38 */
39 setIsServer(isServerValue: IsServerValue): void {
40 isServerFn = isServerValue
41 },
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected