MCPcopy Create free account
hub / github.com/apitable/apitable / isClient

Function isClient

packages/core/src/utils/env.ts:21–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19// The logic in the `core` sometimes needs to distinguish between the client and the server.
20export const isServer = () => typeof global === 'object' && global.process && !global['document'];
21export const isClient = () => typeof global === 'object' && global['document'];

Callers 8

fetchInterceptorFunction · 0.90
initializeDatabusWasmFunction · 0.90
getInstanceFunction · 0.90
hasErrorMethod · 0.90
hasErrorMethod · 0.90
ops2ChangesetMethod · 0.90
handleAcceptCommitMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected