Store reference
Compact index of @ilha/store exports mapped to the global-state guides.
A map of the public @ilha/store API. For how-to guidance, start with Store overview.
Builder
| Export / method | Guide |
|---|---|
store(initialState) / store(schema) |
Store overview |
.derived(key, fn) |
Derived state and actions |
.action(key, fn) |
Derived state and actions |
.middleware(fn) |
Derived state and actions |
.on(event, handler) / .onError(handler) |
Subscriptions and validation |
.build() |
Store overview |
Built-in store methods
| Method | Guide |
|---|---|
State accessors / store.setState / store.reset / store.dispose |
Subscriptions and validation |
store.getState / store.getInitialState |
Subscriptions and validation |
store.subscribe(listenerOrSelector, …) |
Subscriptions and validation |
store.select(selector) |
Subscriptions and validation |
store.bind(selector) |
Subscriptions and validation |
effectScope |
Subscriptions and validation |
Entry points
| Import path | Guide |
|---|---|
@ilha/store |
store, types, subscriptions, persist, dehydrate/hydrate, shallowEqual, effectScope |
@ilha/store/persist |
persist, persistQuery, querySpec, codec, readQuery — see Persistence and query |
@ilha/store/query |
query, QueryCache, defaultQueryCache — see Persistence and query |
@ilha/store/form |
extractFormData, validateWithSchema, issuesToErrors — see Forms |
SSR
| Export | Guide |
|---|---|
dehydrate(storeOrState) / hydrate(store, raw) |
SSR |