Reference
@reckona/mreact-reactive-core/runtime-state
2 public exports.
Function
FunctiongetGlobalRuntimeState
function getGlobalRuntimeState<TState>(key: string, create: (): TState): TStateReturns a shared global runtime state object, creating it when needed.FunctionregisterCleanupfunction registerCleanup(dispose: (): void): voidRegisters a disposer with the currently active cleanup scope.