API Overview

This page lists every public export from @fobx/core with a short description and link to its full documentation.


Primitives

Export Description
observableBox Create a reactive boxed value
computed Derive a cached value from other observables
autorun Run a side-effect whenever its dependencies change
reaction Watch a specific expression and react to changes
when Wait for a condition, then run once (or resolve a promise)

Objects & Annotations

Export Description
observable Make a plain object or class instance reactive
makeObservable Make an object reactive using explicit annotations

Collections

Export Description
observableArray Reactive array with full Array API
observableMap Reactive Map with per-key tracking
observableSet Reactive Set

Transactions & Tracking

Export Description
runInTransaction Batch mutations — reactions run only after the outermost transaction ends
transaction Higher-order function — wraps a function so each call runs in a transaction
runWithoutTracking Read observables without creating dependencies

Async

Export Description
flow Generator-based async actions with per-step transactions

Selectors

Export Description
createSelector Efficient derived boolean from a collection — O(1) with the default comparer

Configuration

Export Description
configure Set global options: enforceActions, onReactionError, equality comparers

Type Predicates

Export Description
isObservable Check if a value is a box, computed, or collection observable
isObservableBox Check if a value is an observableBox
isComputed Check if a value is a computed
isObservableArray Check if a value is an observableArray
isObservableMap Check if a value is an observableMap
isObservableSet Check if a value is an observableSet
isObservableObject Check if a value is an observable() object
isObservableCollection Check if a value is an array, map, or set observable
isTransaction Check if a function was wrapped by transaction()
isFlow Check if a function was wrapped by flow()
isPlainObject Check if a value is a plain {} object

Constants

Export Description
UNDEFINED Sentinel used internally — indicates “no value yet” for reactions and selectors