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
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
Constants
| Export |
Description |
UNDEFINED |
Sentinel used internally — indicates “no value yet” for reactions and selectors |