Reference

getGlobalRuntimeState

Returns a shared global runtime state object, creating it when needed.

Signature

function getGlobalRuntimeState<TState>(key: string, create: (): TState): TState