Skip to content

Function: createViewStoreLifecycle()

API / @xmachines/play-view / index / createViewStoreLifecycle

function createViewStoreLifecycle(createStore): ViewStoreLifecycle;

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

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