API reference@evolu/common › Store

Observable state container with change notifications.

Functions

FunctionDescription
createStoreCreates a store with the given initial state. The store encapsulates its state, which can be read with get and updated with set or update. All changes are broadcast to subscribers.

Interfaces

InterfaceDescription
ReadonlyStoreA read-only view of a Store that provides state access and change notifications without allowing modifications.
StoreA store for managing state with change notifications. Like a Ref with subscriptions.

Type Aliases

Type AliasDescription
ListenerCallback used by ReadonlyStore.subscribe to observe changes.
UnsubscribeFunction returned by ReadonlyStore.subscribe to stop observing changes.