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): (): void | undefinedRegisters a disposer with the currently active cleanup scope and returns the owner's unregister handle when it provides one.