Reference
@reckona/mreact-reactive-core/internal
23 public exports.
Function
FunctiondeferredComputed
function deferredComputed<T>(fn: (): T): ReadonlyCell<T>Lazy invalidation for compiler-generated consuming computations.FunctiondisposeRequestStateScopefunction disposeRequestStateScope(scope: RequestStateScope, suppressErrors: boolean): voidRequest state integration helpers for server adapters.FunctionflushPendingComputedfunction flushPendingComputed(): voidComputed flush helper used by batched reactive updates.FunctionflushQueuedComputationsfunction flushQueuedComputations(): voidScheduler controls used by reactive-core tests and integrations.FunctiongetRequestStateStoragefunction getRequestStateStorage(): RequestStateStorage | undefinedRequest state integration helpers for server adapters.FunctionnotifySubscribersfunction notifySubscribers(source: Source, skip?: ReactiveComputation): voidLow-level source helpers used by reactive DOM keyed item proxies.FunctionrunWithSetupTrackingfunction runWithSetupTracking<TArgument, TResult>(setup: (argument: TArgument): TResult, argument: TArgument): TResultDeferred dependency collection for compiler-generated component setup calls.FunctionschedulePendingFlushfunction schedulePendingFlush(): voidScheduler controls used by reactive-core tests and integrations.FunctionsetSchedulerfunction setScheduler(nextScheduler: Scheduler): (): voidScheduler controls used by reactive-core tests and integrations.FunctionsubscribeAdaptiveSourcefunction subscribeAdaptiveSource(source: Source, listener: (): void): (): voidCompact adaptive subscriptions used by compiler-owned bindings.FunctionsubscribeCellfunction subscribeCell<T>(cell: ReadonlyCell<T>, listener: (value: T): void): (): void | undefinedLow-level cell subscription used by reactive DOM single-cell bindings.FunctionsubscribeRefreshablefunction subscribeRefreshable(listener: (): void): RefreshableSubscriptionCompact adaptive subscriptions used by compiler-owned bindings.FunctionsubscribeRefreshableIfTrackedfunction subscribeRefreshableIfTracked(listener: (): void): RefreshableSubscription | undefinedCompact adaptive subscriptions used by compiler-owned bindings.FunctiontrackSourcefunction trackSource(source: Source): voidLow-level source helpers used by reactive DOM keyed item proxies.FunctionwithCleanupScopefunction withCleanupScope<T>(owner: CleanupOwner | undefined, run: (): T): TCleanup scope helpers used by reactive DOM and tests.Interface
Re-export
Re-exportgetGlobalRuntimeState
const getGlobalRuntimeState: unknownShared global runtime state helper for singleton package state.Re-exportinstallRequestStateStorageconst installRequestStateStorage: unknownRequest state integration helpers for server adapters.Re-exportregisterCleanupconst registerCleanup: unknownCleanup scope helpers used by reactive DOM and tests.Re-exportRequestStateScopeconst RequestStateScope: unknownRequest state integration helpers for server adapters.