For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/functions/makeObservable.md.

Function: makeObservable() experimental

makeObservable<T>(initialValue, validator?): IObservable<T>

Beta

Type Parameters

T

T

Parameters

initialValue

T

Initial value of the observable.

validator?

ObservableValidator<T>

Optional validator to use for the setter.

Returns

IObservable<T>

Remarks

Creates an observable object that stores a value state.