API reference@evolu/common › Platform

Platform runtime utilities and capability abstractions.

Functions

FunctionDescription
testGlobalUncaughtErrorsRecords platform global uncaught-error reporting until disposed.
testGlobalUnhandledRejectionsRecords platform global unhandled-rejection reporting until disposed.

Interfaces

InterfaceDescription
FlushSyncDep-
ReloadAppDep-
TestGlobalErrors-

Type Aliases

Type AliasDescription
FlushSyncFlushSync is for libraries like React to flush updates synchronously inside the provided callback to ensure the DOM is updated immediately.
ReloadAppReload the app in a platform-specific way.

Variables

VariableDescription
hasNodeBufferDetects if Node.js Buffer is available and should be used.
isDevTrue outside production builds.
isHermesReturns true if running in React Native with Hermes engine.
isServerReturns true if running in a server environment (no DOM).