@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / hydrateModel
Function: hydrateModel() ​
ts
function hydrateModel<ModelType>(
initialModel,
bindings,
__namedParameters): Promise<TModelHydrationResult<ModelType>>Polls every Storage concurrently, then composes successful snapshots in registration order so hydration stays deterministic regardless of I/O timing. After a failed load or hydration, the Sync Loop skips that Storage until an explicit retry succeeds.
Type Parameters ​
• ModelType extends object
Parameters ​
• initialModel: ModelType
• bindings: readonly TAnyStorageBinding<ModelType>[]
• __namedParameters: TModelHydrationOptions = {}
Returns ​
Promise<TModelHydrationResult<ModelType>>