Skip to content

Function: createViewStoreLifecycle()

API / @xmachines/play-actor / createViewStoreLifecycle

function createViewStoreLifecycle(createStore): ViewStoreLifecycle;

Defined in: packages/play-actor/src/view-store-lifecycle.ts:94

Creates a coordinator of the lifecycle.

Parameters

ParameterTypeDescription
createStore(seed) => StateStoreThe store factory of the framework. It receives the seed that is safe for the prototype (toAtomState(view.state)), and the composed state carries /context already.

Returns

ViewStoreLifecycle