Reference

@reckona/mreact-reactive-core/internal

17 public exports.

Function

FunctionflushPendingComputedfunction flushPendingComputed(): voidComputed flush helper used by batched reactive updates.FunctionflushQueuedComputationsfunction flushQueuedComputations(): voidScheduler controls used by reactive-core tests and integrations.FunctionnotifySubscribersfunction notifySubscribers(source: Source): voidLow-level source helpers used by reactive DOM keyed item proxies.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: (dispose: (): void): void, run: (): T): TCleanup scope helpers used by reactive DOM and tests.

Interface

InterfaceRefreshableSubscriptioninterface RefreshableSubscriptionCompact reactive listener that can also be invalidated by its owner.InterfaceSchedulerinterface SchedulerScheduler used to enqueue pending reactive computations.InterfaceSourceinterface Source

Re-export

Re-exportgetGlobalRuntimeStateconst getGlobalRuntimeState: unknownShared global runtime state helper for singleton package state.Re-exportregisterCleanupconst registerCleanup: unknownCleanup scope helpers used by reactive DOM and tests.

Variable

VariableruntimeStateconst runtimeState: { activeTracker: Tracker; batchDepth: number; cleanupOwner: (dispose: (): void): void | undefined; flushingComputed: boolean; nextComputationId: number; notificationDepth: number; pendingComputed: Set<ReactiveComputation> }